美文网首页
ubuntu安装ssh

ubuntu安装ssh

作者: jose_dl | 来源:发表于2017-07-15 19:49 被阅读0次
  • 切换到root用户
su -
  • 在root的根目录下update一下
apt-get update
  • 安装ssh server
apt-get install openssh-server
  • 查看进程
ps -e | grep ssh
  • 如果只看到sshd没有ssh-agent
eval  ssh-agent
WechatIMG6.jpeg
  • 重启ssh
/etc/init.d/ssh restart
  • 远程连接
ssh  用户@IP地址

![WechatIMG8.jpeg](https://img.haomeiwen.com/i5573343/fd159a0104a7c7ca.jpeg?imageMogr2/auto-

  • 如果出现Agent admitted failure to sign using the key
ssh-add   ~/.ssh/id_rsa 

orient/strip%7CimageView2/2/w/1240)

相关文章

网友评论

      本文标题:ubuntu安装ssh

      本文链接:https://www.haomeiwen.com/subject/qrrzhxtx.html