wangwust

 1、首先看看自己的Ubuntu是不是已经安装或启用了ssh服务,执行

ps -e |grep ssh

    我们看到只有ssh-agent 这个是ssh-client客户端服务,如果有sshd,证明你已经装好了ssh-server并已启用,当然就可以不用往下看了

   

2、如果没有安装执行

sudo apt install openssh-server

开始安装,输入yes回车

3、执行完了就代表安装完成了

4、然后再执行

ps -e |grep ssh

发现多了sshd,远程连接本电脑就已经启用了

5、然后我们通过其他电脑或服务器连接本电脑执行 ssh \'你的用户名\'@‘你的ip’,然后输入yes,然后输入密码,就成功连接了

 

 

 转自:https://jingyan.baidu.com/article/359911f5a5b74857fe0306c4.html

分类:

技术点:

相关文章:

  • 2021-12-15
  • 2021-11-01
  • 2021-11-30
  • 2021-11-06
  • 2021-11-01
  • 2021-11-08
  • 2021-11-29
猜你喜欢
  • 2021-12-25
  • 2021-12-31
  • 2021-11-01
  • 2021-12-10
  • 2021-12-15
  • 2021-12-10
  • 2021-11-30
相关资源
相似解决方案