Remote port forwarding using SSH, data transfer and remote login

Source: Internet
Author: User
Tags ssh server

Blog address:http://loopholes.blog.51cto.com/9445813/16203672015-03-17

"This test needs to download the peanut shell, don't ask me what the peanut shell is, download the dot here "

How to get into the company's computer at home, for this question, is the cause of my experiment:

1, if just let the user log in, you only need to install the SSH server, if you also need to remote each other, you need to download SSH client (clients)

Yum install-y openssh ==> will automatically load the Openssh-server (server side) dependency Package

Yum install-y openssh-client (client)

2, my system is the CentOS 6.6 32bit version, IP is 192.168.31.150

3, Xiaomi router, as long as support DDNS, DMZ function, no specific requirements

Well, that's a lot of nagging, and it's starting to test-------------------

1, open the peanut shell to your router to apply for a free domain name, you can also direct official website here to apply for domain name

2, login your router, set up the DMZ host, your Linux intranet IP set to the DMZ host, the role is to expose the intranet network, can realize two-way communication

3, in the peanut shell to add a map to the intranet, each add a map peanut shell will be reassigned a port, this step is to map the port on our intranet host to a different port, when the user access to provide a map port host of a port, The server transfers the request to a host that provides this specific service within the local LAN

4, finally use the powerful SSH function for remote login:

SSH [email protected], this is the time to complete

Method Two:

There is also a router (this router is mercury) and SSH to implement port forwarding, feel sometimes peanut shell intranet version of the software is sometimes not stable, we continue to test:

1. Still need you to apply for a free domain name, Click here , the application domain name is for you to be able to better memory, and not to remember the hard to remember the router's IP, well, not much to say

2. After landing your router, will be your domain name binding router, it will go to dynamically get the domain name, the role is that your route IP may be dynamic, then you in the company or when the process how to know your home router IP??

3. To your host, that is, you need to be a remote network IP, to do a virtual server, "forwarding rules-Virtual server" This actually and the peanut shell in the above do mapping is a truth, but the way is not the same only, it should be noted that the service port should be designated 22 port (this is SSH), If it is FTP should be 21, which ports have their own Baidu

For a tp-link.

This step is almost finished, with SSH [email protected] to the root of the host

If your domain cannot be resolved, you can ssh [email protected] Routing address

This article is from "Xiao Xu" blog, please be sure to keep this source http://loopholes.blog.51cto.com/9445813/1620367

Remote port forwarding using SSH, data transfer and remote login

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.