Step One ----使用apt-get安装SSH服务
安装SSH服务器:sudo apt-get install openssh-server
sudo apt-get install openssh-client
可使用dpkg命令查看安装信息:dpkg -l | grep -i "ssh"
Step Two----启动与停止SSH服务
service ssh start
service ssh restart
检查监听端口是否打开:netstat -a | grep ssh
Step Three----设置SSH的配置文件sshd_config
Step Four----使用SSH登录到远程主机
ssh 192.168.0.95 -l book
Step Five----使用scp命令将本地文件拷贝到远程机器
scp xxx.c book@192.168.0.95:/opt/
Step Six----安装与使用SSH Secure Shell Client软件在windows