![]() ![]() We are prompted for the user account password, then connected to the remote computer from the local computer. So-somewhat counter-intuitively-to make a connection to the remote computer, we ask ssh to make a connection the local computer, on port 43022. That connection request will be forward to the remote computer. The remote computer is listening on port 43022 on the local computer. Connecting to the Remote Computerīecause the connection from the remote computer is successful, and it is listening for connections, we can try to connect to the remote computer from the local one. We can see that the person with the user account called dave has logged in to the local computer, and the remote computer has connected (using the same user credentials) from IP address 192.168.4.25. Let’s use the who command to see the logins on the local computer. Note that when the connection has been made the command prompt changes from to now connected to the local computer from the remote computer. You will be prompted for the password of the account you are using to connect to the local computer. ![]() What you see-if anything-depends on whether connections have ever been made from the remote computer to the local computer. ![]() Or you may see a warning as the connection details are added to the list of recognized SSH hosts. Ssh -R 43022:localhost:22 may get a warning about having never connected to the local computer before.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |