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
本文介绍了SSH服务的相关操作。首先使用apt - get安装SSH服务器和客户端,可用dpkg查看安装信息;接着说明了启动、停止服务及检查监听端口的方法;还涉及设置配置文件、登录远程主机、用scp拷贝文件,最后提到在windows安装使用SSH Secure Shell Client软件。
1457

被折叠的 条评论
为什么被折叠?



