Tools/Materials
First, configure the SSH parameters
To modify the Sshd_config file, the command is:
Vi/etc/ssh/sshd_config
Remove the comment for #passwordauthentication No and modify No to Yes//kali default Yes
Change the Permitrootlogin Without-password revision to
Permitrootlogin Yes
Then, save, exit vim
Second, start the SSH service
The command is:
/etc/init.d/ssh start
Or
Service SSH Start
To see if the SSH service status is working correctly, the command is:
/ETC/INIT.D/SSH status
Or
Service SSH Status
Third, log in using the SSH login tool (Putty\securecrt\xshell) Kali
Then use the SSH Connection tool to reconnect Kali, successful!
Iv. setting up the system to automatically start the SSH service
Method One:
Sysv-rc-conf
Sysv-rc-conf--list | grep ssh
sysv-rc-conf SSH on//system automatically start SSH service
sysv-rc-conf ssh off//Shut down system automatically start SSH service
Method Two:
UPDATE-RC.D SSH enable//system automatically start SSH service
UPDATE-RC.D SSH disabled//Shut down system to start SSH service automatically
kali2.0 using SSH for remote login