- ssh安装:
a. 安装客户端:
sudo apt install openssh-client
b. 安装服务端
sudo apt install openssh-client
- 查看是否安装成功:
客户端:
ssh --help
服务端:查看/etc/init.d #是否有ssh 这项:
ls /etc/init.d #是否有ssh 这项
- 服务器端开启ssh服务: 手动开启命令如下:
/etc/init.d/ssh start
- 用DameWare SSH 工具连接:需要知道用户名和密码:
a.用ipconfig查看服务器ip地址
b.在客户端输入命令:
ssh username@ip
例如 ssh root@192.168.5.132