ubuntu18.04安装openssh服务实现xshell访问
1.更新源列表
- 登录终端窗口,输入: sudo apt-get update
2.安装openssh-client :sudo apt-get install openssh-client
3.安装openssh-server: sudo apt-get install openssh-server
4.启动ssh服务:sudo service ssh start
5.验证ssh服务是否启动成功:sudo ps -aux -ef | grep ssh
6.使用xshell链接测试
6.1在windows系统上,下载xshell
6.2安装装后启动
6.3新建一个连接
6.4用新建连接登录
- 如果使用xshell连接linux之后出现/usr/bin/xauth: error in locking authority file /home/*/.Xauthority,退出xshell ,重新登录一次即可.