Ssh to your machine from anywhere?

  • Thread starter Tony11235
  • Start date
  • Tags
    Machine
In summary, you need to install ssh on your computer, and configure your router to forward port 22 to the computer hosting the ssh server.
  • #1
Tony11235
255
0
What is it you have to do if you want to be able to ssh to your machine from anywhere? I know what it takes if you're connecting to one that's on the same network. And I'm not talking just ssh, I also mean telnet, ftp, etc...Kind of a noob question.
 
Computer science news on Phys.org
  • #2
Well I use putty for ssh ( http://www.putty.nl/download.html ) as a client. it can also be used as a telnet client. If you want to connect to a server as ftp you can just use internet explorer or firefox or even telnet by connecting to port 21, although you'd have to know the commands for ftp.

But if you want to turn your PC into a server, then you can install VNC server which will let you see your desktop as if you were sitting behind the computer.
 
Last edited by a moderator:
  • #3
I'm familiar with all the clients. I just want to be able to connect to my linux machine at home when I'm at school.
 
  • #4
Install sshd, the SSH daemon.
If your linux machine is behind a firewall/router, make sure that port 22 is open.
 
  • #5
I installed sshd. But now am I supposed to be able to: ssh myipaddress from anywhere now? I still can only do it from my other computer which shares the same ethernet connection, on the same network that is. Is there anything else I am supposed to do? This is probably a stupid question.
 
  • #6
So, you can ssh to localhost? and ssh to your computer from computers in the same subnet sharing the internet connection via a router/firewall?

Next, you have configure the router/firewall to forward port 22 to the computer in your local network.
 
  • #7
I don't think the router is in my hands. I'm in an apartment in which everybody uses the same service. I may be wrong.
 
  • #8
I don't think the router is in my hands. I'm in an apartment in which everybody uses the same service. I may be wrong.

You need to configure PAT, ie what others have said.. Configure your router to forward anything that hits port 22 on your router to the internal IP address of your ssh server. In conclusion, if you don't admin your router you won't be able to do this...
 
  • #9
Tony11235 said:
I don't think the router is in my hands. I'm in an apartment in which everybody uses the same service. I may be wrong.


Then you probably can't, unless the network admin is willing to setup the router to allow you to do so.
 
  • #10
Yeah I don't admin my router. I will have to talk to the network administrator and see what's possible.
 

FAQ: Ssh to your machine from anywhere?

What is Ssh and how does it work?

Ssh stands for Secure Shell and it is a network protocol used for secure communication between two computers. It allows a user to remotely access and control a computer over an unsecured network.

How can I Ssh to my machine from anywhere?

In order to Ssh to your machine from anywhere, you will need to have a public IP address for your machine and have Ssh server software installed. You will also need to set up port forwarding on your router to allow outside connections.

Is Ssh safe to use?

Yes, Ssh is considered a very secure method of remote access as all data sent between the two computers is encrypted. However, it is important to use strong passwords and keep your Ssh server software up to date to ensure maximum security.

Can I Ssh to my machine from a mobile device?

Yes, there are Ssh client apps available for both iOS and Android devices, allowing you to Ssh to your machine from a mobile device. However, it is important to keep security in mind and only access your machine from trusted networks.

Are there alternatives to Ssh for remote access?

Yes, there are other protocols such as Telnet and RDP that can also be used for remote access. However, these are less secure than Ssh and it is generally recommended to use Ssh instead.

Similar threads

Replies
4
Views
2K
Replies
27
Views
3K
Replies
6
Views
709
Replies
54
Views
11K
Replies
10
Views
4K
Back
Top