Kali 远程登陆SSH

一、配置SSH

编辑/etc/ssh/sshd_config

将#PasswordAuthentication no的注释去掉,将NO修改为YES  //可以用密码登陆
将PermitRootLogin without-password修改为PermitRootLogin yes  //运行root用户用密码远程登陆SSH

二、启动SSH服务

/etc/init.d/ssh start 
或者
service ssh start

三、使用SSH工具连接

XShell、Putty、SecureCRT等SSH登陆工具

注意:

如未配置密码登陆,则生成密钥进行登陆

#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_rsa_key
原文地址:https://www.cnblogs.com/captainRoB/p/7188628.html