Linux上傳文件到服務器命令
1 ssh www.2cto.com
在Cygwin中執行:$ ssh username@remotehost

2 scp
命令scp基於SSH協議,可以將本地文件拷貝到遠程服務上的指定目錄,格式如下:
$ scp filename username@remotehost:remotedirectory
執行:$ scp ipmsg.log
[email protected]:/home/admin

3 ftp/sftp
首先用root用戶登錄遠程Linux服務器,將admin用戶添加到FTP賬戶中。
通過echo命令追加一行到user_list文件中:# echo admin >> user_list
之後通過service命令開啟FTP服務:# service vsftpd start

現在就可以在本機訪問FTP遠程服務器了,然後通過put命令上傳文件了。
在Cygwin中執行:$ sftp
[email protected]

4 SSH Windows Client
SSH提供了一個scp2.exe作為Windows下的scp命令工具。
具體位置:C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell