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
background: There is a flask project that provide...
more is one of our most commonly used tools. The ...
When you start working on a project, it’s importa...
Due to the initial partitioning of the system, th...
When I was at work today, the business side asked...
The topic I want to share with you today is: &quo...
Reasons why the 1px line becomes thicker When wor...
Table of contents 1. Prerequisites 1.1 Supported ...
1. Mirror images disappear in 50 and 93 [root@h50...
Use event delegation to implement message board f...
Table of contents 1. Define object methods 2. Def...
Phrase elements such as <em></em> can ...
Preface Locks are synchronization mechanisms used...
Statement 1: <link rel="shortcut icon"...
Table of contents 1. Docker installation on Mac 2...