Backtrack how to open SSH service

  
                

Some users have installed BackTrack for their computer, which is a professional Linux operating system for computer security detection. However, many users are still in the learning phase of this system, so the operations are not very skilled. Some users have questions about how to start the SSH service in the BackTrack system. Today, Xiaobian will help you solve this problem.

Solution:

Since BackTrack is based on ubuntu, start /etc/init.d/ssh start

and then connect remotely and find an error.

This is how it happened, usually not used debian series, looked under /var /log /messages also found no error message.

Checked online, the original two files are missing (redhat\\centos is by default), the host two key files.

The default is visible in /etc/ssh/sshd_config:

#HostKey /etc/ssh/ssh_host_rsa_key

#HostKey /etc/ssh/ssh_host_dsa_key

I haven't seen these two files under bt, create a new one:

root@BT:/#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key

root@BT:/#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key

No need to reboot, then connect and you will find it right.

The above is the way to start the SSH service in the BackTrack system. Users who are learning how to use the BackTrack operating system can collect this little trick in case they need it from time to time.

Copyright © Windows knowledge All Rights Reserved