Ssh remote login to another machine Command

Source: Internet
Author: User
Tags ssh port
If you remotely log on from one linux server to another through ssh, this is usually used when multiple servers are used. Because a firewall is often set up for the server and cannot directly access a server on the Internet, to access it, you need to first connect to a machine outside the firewall, then, connect to the server in the firewall. If you use the root account to connect to a machine with the IP address 192.168.1.102, enter: & if you remotely log on to another machine from a linux server through ssh,

This situation is usually used when multiple servers are used.

Because a firewall is often set up for the server and cannot directly access a server on the Internet,

To be accessible, you must first connect to a machine outside the firewall and then connect to the server in the firewall.

If you use the root account to connect to a machine with the IP address 192.168.1.102, enter "ssh 192.168.1.102-l root ",

Enter the password of the root account and then press Enter to confirm.

If the ssh port of the server is not the default port 22 and is a custom port 1234, you can add the parameter-p after the command,

For example, "ssh 192.168.1.102-l root-p 1234"
Related Article

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.