In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how Mac connects to remote servers through different terminal SSH", which is easy to understand and clear, hoping to help you solve your doubts. Let me lead you to study and learn this article "how Mac connects to remote servers through different terminal SSH".
Mac uses Shell (terminal) SSH to connect to a remote server
Prerequisite: have the ip, port number, account and password of the server to which you need to connect
1. Open the terminal first, and then enter sudo su-enter to enter the root directory
2. Then enter: ssh-p port number server user name @ ip (for example, ssh-p 22 userkunyu@119.29.37.63) enter, where you will enter yes or no to confirm whether you are connected, and enter yes enter
3. Then enter the user password on the server and enter enter
4. Enter the directory of your account on the server here, that is, if the connection is successful, type sudo su-enter the root directory of the server to perform the operation.
Mac remotely connects to the Linux server through its own Terminal terminal SSH
1. When Xmanager in win, the Xshell tool inside is convenient, but it does not support os. It is learned on the Internet that mac can connect to the linux server remotely through the ssh protocol in the terminal terminal.
two。 The command format for the connection is simple:
$ssh root@xx.xxx.xx.xx
Ssh space user name @ destination machine IP address
It is worth noting that there may be two situations here.
The password set by my buddies in the background contains a field: p0st. I later asked for help to see that the circle was a 0, not a capital O. So when the password is wrong, you may also see the permission denied, and you must remember to "check", "check", "code" and user name.
Then there is the second situation, which is also encountered more often on the Internet. I have already set it before, so after the password is correct, I will connect to it directly:
Permission denied or authentication denied, which means insufficient permissions
Here, you need to modify the value of a configuration file to pass.
Vi / etc/ssh/ssh_config
Click I to enter the editing state and set PasswordAuthentication to yes
Then remove the # in front of PasswordAuthentication to make it effective.
Then use the command to shut down the ssh service
Sudo launchctl unload-w / System/Library/LaunchDaemons/ssh.plist
Then restart and remove the un
Sudo launchctl load-w / System/Library/LaunchDaemons/ssh.plist
Enter a command to view the restart status
Sudo launchctl list | grep ssh
If a line of-0 or something, it is successful.
Then reconnect and you should be able to connect.
The above is all the contents of the article "how Mac connects to remote servers through different terminal SSH". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.