ssh 是客户端
sshd 应该是服务器端的
ssh-agent ssh-agent是一种控制用来保存公钥身份验证所使用的私钥的程序
查看ssh状态
ps -e |grep ssh或者rpm -qa |grep ssh
Failed to start ssh.service: Unit ssh.service not found.
未安装ssh,安装即可apt-get install openssh-server
su passwd
先给root用户设置密码,然后才可以通过root账户登陆
设置/etc/ssh/sshd_config
- 设置后允许root用户远程登录
PermitRootLogin yes PasswordAuthentication yesUseDNS no
重启ssh
/etc/init.d/ssh restart
如若还是不能远程登录的话,可能是root密码忘记设置了
sudo passwd root
设置一下密码就可以远程登录了