xshell connection

Xshell first ssh connection kali system

Xshell help us to connect the various services platform to facilitate the management server link is encrypted (ssh / vsftp)

Step 1: open ssh service is turned on detection of kali success /etc/init.d/ssh status or netstat -ntulp | grep 22

 

 Discovery is off to modify sshd_config file, the command is:

vi /etc/ssh/sshd_config
The #PasswordAuthentication no Notes removed, and the NO YES // kali modify the default is yes

 

 The PermitRootLogin without-password changed to

PermitRootLogin yes
Then, save and exit vim start the SSH service
Command is:
/etc/init.d/ssh start

 

View ssh service is turned on again

 

 

 

Step 2: Turn off the firewall (currently) /etc/init.d/iptables stop, and then need to find ssh configuration file

/ Etc / ssh / sshd_config about 27 rows "#PermiaRootLogin prohibit-password" modify

"PremitRootLogin yes" to save and exit

Step 3: service ssh restart /etc/init.d/ssh restart xshell connection using ordinary root account or accounts

update -re.d ssh enable set a power-enabled

Step 4: xshell: File - New - protocol selection ssh, enter kali host of ip, port 22 is the default and then click the link, then enter the root account password last

Note; ssh service can change the port, edit the configuration file, port 22-port 2222

The connection is completed

 

Guess you like

Origin www.cnblogs.com/ljc12138/p/11540059.html