Mac uses Shell (Terminal) SSH to connect to the remote server Prerequisite: You need to have the IP address, port number, account and password of the server you need to connect to 1. First open the terminal, then enter 2. Then enter: ssh -p port number server username@ip (for example ssh -p 22 [email protected]) and press Enter. You will be asked to enter yes or no to confirm whether to connect. Enter yes and press Enter. 3. Then enter the user password on the server and press Enter 4. Now you have entered the directory of your account on the server, which means the connection is successful. Finally, enter Mac remotely connects to the Linux server through the built-in Terminal SSH 1. When using Windows, Xmanager and the Xshell tool in it are very convenient, but they do not support OS. I learned on the Internet that Mac can remotely connect to Linux server through SSH protocol directly in the terminal. 2. The command format for connection is very simple: $ ssh [email protected]
It is worth noting that there may be two situations here The password set by the backend buddy contained a field: p0st. I later asked someone for help and found out that the circle was a 0, not a capital O. So when the password is wrong, you may also see Then the second situation is also encountered more frequently on the Internet. I have already set it up before, so after the password is correct, I can connect successfully directly: Here you need to modify the value of a configuration file to pass Click i to enter the edit state and set Then remove the # sign in front of Then shut down the ssh service using the command sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist Then restart and remove un sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist Enter a command to view the restart status sudo launchctl list | grep ssh If there is a line with -0 or something, it is successful Then reconnect and it should be able to connect Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: Solution to mysql login warning problem
>>: WeChat applet uses the video player video component
Table of contents definition grammar Examples 1. ...
1. The first method is to start the local tomcat ...
Delete a file by its inode number First use ls -i...
Table of contents Code Optimization Using key in ...
Table of contents 1: Build webpack 2. Data hijack...
Table of contents Overall Effect Listen for conta...
Table name and fields –1. Student List Student (s...
Canvas has always been an indispensable tag eleme...
Table of contents 1. Content Overview 2. Concepts...
1. Set a directory whitelist: Do not set restrict...
1. Unzip MySQL 8.0.16 The dada folder and my.ini ...
This article introduces RHEL8 network services an...
1. Regular expression matching ~ for case-sensiti...
Do you add an alt attribute to the img image tag? ...
After Vmvare sets the disk size of the virtual ma...