首页 > 系统服务 > 详细

xshell连接

时间:2019-09-24 10:31:57      阅读:103      评论:0      收藏:0      [点我收藏+]

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

连接完成

技术分享图片

 

xshell连接

原文:https://www.cnblogs.com/ljc12138/p/11540059.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!