「Linux入門」cURLの使い方(SCP/SFTP、FTP、Samba)

1.SCP/SFTP ダウンロード
curl -u [user]:[password] scp://sample.com/demo.zip
curl -u [user]:[password] sftp://sample.com/demo.zip

2.SCP/SFTP アップロード
curl -T [filename] -u [user]:[password] scp://sample.com/uploadpath/filename
curl -T [filename] -u [user]:[password] sftp://sample.com/uploadpath

3.FTPアップロード
curl -T [filename] -u [user]:[password] –ftp-create-dirs -ssl ftp://hostname/uploadpath

4.FTPダウンロード
curl -u [user]:[password] -O ftp://hostname/PATH/filename

5.Sambaアップロード
curl -T [filename] -u “domain\username:passwd” smb://abc.arkgame.com/path/

6.Sambaダウンロード
curl -u “domain\username:passwd” smb://hostname/abc.arkgame.com/filename

Comments are closed.