Using Iterm to operate remote server under Mac

Source: Internet
Author: User
Tags save file

1. Connect

ssh-t [email protected] public IP address-P 22 (port number)

2. The phenomenon of broken price appeared

It's a drop-off phenomenon.

Solution Scenario One: If you have more than one server, do not want to set on each server, the following actions: 1, run the command: CD ~/.SSH/2, if Run command ls, no config, new Configvim config3, In config in the input: Serveraliveinterval 604, save file (: x) in the link to the Linux server, there will be no disconnection problem. Scenario Two: If you have multiple personal Management servers and do not want to set them on each client, simply add the following configuration to the server's/etc/ssh/sshd_config: Clientaliveinterval 60 Scenario Three: If you only want to keep the current SSH connection, You can use the following command: Ssh-o serveraliveinterval=60 [email protected]


Using Iterm to operate remote server under Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.