Background: The SSH service needs to be enabled for the newly installed BT5-R3 System (192.168.100.141.
1. Run the command: service ssh start on 192.168.100.141, and the service is enabled.
Run the SSH command: ssh root@192.168.100.141 with the prompt: Read from socket failed: Connection reset by peer.
2. view the log on 192.168.100.141:/var/log/auth. log. Two lines of error message are displayed:
May 23 09:52:55 bt sshd [1726]: error: cocould not load host key:/etc/ssh/ssh_host_rsa_key
May 23 09:52:55 bt sshd [1726]: error: cocould not load host key:/etc/ssh/ssh_host_dsa_key
3. Run the following command on 192.168.100.141:
Ssh-keygen-t rsa-f/etc/ssh/ssh_host_ras_key
Ssh-keygen-t dsa-f/etc/ssh/ssh_host_dsa_key
(You will be prompted to enter the command each time you execute the command. Press enter)
Then execute the command on the remote computer: ssh root@192.168.100.141
The connection is successful after you enter the password.
Read more: Install BackTrack5 (BT5) + localization in vmwarevm