In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to solve the mac connection server exception, the content is very detailed, interested friends can refer to, hope to be helpful to you.
How to solve the exception of mac connecting to the server? There may be some exceptions when using mac to connect to the server. Different errors generally correspond to different reasons. Let's give an example below.
1. An error occurred while connecting to the CVM with Mac terminal: Permission denied (publickey)
Use the Web terminal or Xshell to connect to the server to modify the configuration file.
Vi / etc/ssh/sshd_config set the parameter of PasswordAuthentication to yes should restart the ssh service at the end of the file systemctl restart sshd.service to view the ssh service status ssh-p 22 root@112.74.38.117 connect through the specified port (make sure the port is open) or no port can be added
Then you can use the terminal to connect to the cloud server.
two。 There is an exception when connecting to the CVM with a Mac terminal. The ip of the ping CVM displays timeout.
Check native hosts:cat / etc/hosts
Check the ip:nslookup localhost corresponding to the native localhost
Check port 22 occupancy: whether port 22 of lsof-I tcp:22 is occupied
View the ssh configuration:
Cat / etc/ssh/ssh_configcat / etc/ssh/sshd_config
Change the MaxStartups value to 1000 and restart the ssh service
If everything is normal, it may be due to the timeout caused by the firewall, and there is something wrong with the security configuration rules of the host, so it can be accessed normally after modification.
About how to solve the mac connection server exception to share here, I hope the above content can be of some help to you, you can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.