xshell连接

Xshell 首次连接 kali系统中的 ssh

Xshell 帮助我们去连接各种服务平台  方便 管理服务器 链路是加密处理 (ssh/vsftp)

Step 1:开启kali中的  ssh服务  检测是否开启成功 /etc/init.d/ssh status或者netstat -ntulp|grep 22

 发现是关闭的 修改sshd_config文件,命令为:

vi /etc/ssh/sshd_config
将#PasswordAuthentication no的注释去掉,并且将NO修改为YES //kali中默认是yes

 将PermitRootLogin without-password修改为

PermitRootLogin yes
然后,保存,退出vim启动SSH服务
命令为:
/etc/init.d/ssh start

再次查看ssh服务是否开启

 

Step 2:关闭防火墙(目前)/etc/init.d/iptables stop,然后需要找到ssh的配置文件

/etc/ssh/sshd_config 大约在27行 将“#PermiaRootLogin prohibit-password”修改为

“PremitRootLogin yes”保存退出

Step 3:service ssh restart  /etc/init.d/ssh restart 使用xshell连接 使用root账号或普通账号

update -re.d ssh enable  设置开机启用

Step 4: xshell: 文件—新建—协议选择ssh,主机输入kali的ip,端口默认是22然后点击连接  ,接下来输入root账号 最后输入密码

注意; ssh服务可以更改端口,修改配置文件,port 22—port 2222

连接完成

猜你喜欢

转载自www.cnblogs.com/ljc12138/p/11540059.html