1. Open the virtual machine and git bash window and prepare to connect 2. Enter Find the IP address from the picture: inet address: 192.168.78.133 3. Enter the command: ssh [email protected] -p 22 to connect to the virtual machine At this time, my computer reported an error: ssh: connect to host 192.168.78.133 port 22: Connection refused This error may be caused by Run If not, it means the server is not started. Start the server process through 4. After installation, start the server service 5. At this time, use ssh [email protected] -p 22 to connect to the virtual machine again. However, I did not set a password and do not know the password, so using the virtual machine password is useless. At this point we can only modify the ssh configuration file to modify Change View file permissions when modifying At this point, you can see that the file has been changed to a normal file with permissions of rw-r--r-- To modify the file we can change the file to rwxrwxrwx Execute the command: Check permissions again Use vim to modify the configuration: vim /etc/ssh/sshd_config After modification, change the permissions back: sudo chmod 644/etc/ssh/sshd_config At this point, the password has been changed to the root user's password, but we still don't know the password The default root password of Ubuntu is random, that is, there is a new root password every time you boot the computer. We can enter the command sudo passwd in the terminal, then enter the current user's password, enter, The terminal will prompt us to enter a new password and confirm it. The password at this time is the new root password. After the modification is successful, enter the command su root and then enter the new password. There is no default analysis because you haven't set a password for root. The first user is in the admin group, so he can set a password for root, so Enter new UNIX password: --- > Set root password Now just log in using the password you set. Login successful, everything is ok Summarize The above is the record of using ssh command on window8 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Detailed explanation of concat related functions in MySQL
>>: WeChat Mini Program Basic Tutorial: Use of Echart
Unique “About”-Pages A great way to distinguish yo...
This article shares the specific code of making a...
Table of contents 01 What is Kubernetes? 02 The d...
We know that in general, a function must be calle...
Here's a solution to the problem where margin...
Preface Sometimes when hover pseudo-class adds a ...
In actual projects, there are relationships betwe...
Table of contents A JSON is built on two structur...
Table of contents Preface Creating Components Sum...
Preface What is a slow query and how to optimize ...
Friends who have used the Linux system must have ...
Say it in advance Nodejs reads the database as an...
Table of contents 01 Introduction to MySQL Router...
01. Command Overview md5sum - Calculate and verif...
We all know that the underlying data structure of...