BT5-R3 enable SSH service

Source: Internet
Author: User
Tags connection reset

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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.