- 安装 sudo apt-get install ssh
- 启动服务: /etc/init.d/sshd restart
netstat -tlnp | grep ssh - linux 客户端连接
ex: ssh 127.0.0.1 exit
ex: ssh account@127.0.0.1
ex: ssh accout@127.0.0.1 find / &>~/find.log
ex: ssh -f account@127.0.0.1 find / &> ~/find.log sfcp
sftp使用的命令:
针对远程主机的行为:cd,ls,dir,mkdir,rmdir,pwd,chgrp,chown,chmod,ln,rm,rename,exit,bye,quit
针对本机(client)的行为,都加上l,L的小写:lcd,lls,lpwd,lmkdir,et al.
针对上传/下载的操作:put,get.scp
ex: scp /etc/hosts* account@127.0.0.1:~
ex: scp account@127.0.0.1:/etc/bashrc /tmp
ex: dd if=/dev/zero of=/root/dd_10mb_file bs=1M count=10
scp -l 800 /root/dd_10mb_file root@127.0.0.1:/tmp
(传输速率100Kbyte/s)
6.windows 用户
putty/pscp/psftp,分别对应ssh/scp/sftp
下载地址:
https://www.chiark.greenend.org.uk/~sgtatham/putty/snapshot.html
参考:
put/get -r up/download directory
http://blog.youkuaiyun.com/stark_summer/article/details/42640757