SSH to Linux Shell using a hostname and port 80

logic2
logic2 used Ask the Experts™
on
Dear All

I have a linux machine and i'd like to gain access to its Shell from a windows machine
Problem is that am natted, so no private ip possible, is there a way to register my machine on the internet so that i have a name that can be used to access it remotely ? and how ?
Also i'd like to do that over port 80 not the standard SSH or Telnet ports

Thanks in advance
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
It doesnt matter to be natted to access ssh.

Except if the linux machine filter by IP. In this case, it depends if you have fiexed or dynamic ip.
If you don't have, you can use dyndns or no-ip to havec a hostname pointing to your ip.

About the port 80, it could be possible, if your linux machine is not hosting a webserver (port 80).

To configure the ssh port on the linux machine, you should edit /etc/ssh/sshd_config (depending on linux os), then set Port to anything you need. Be carefull; try it before disconnecting from the box. If it doesnt work (port 80 already used by another program), you will lose control over your linux box.

Finally, to access ssh from windows, putty is the way to go.
Top Expert 2007

Commented:
Which end is natted?  The Linux or Windows end?

As for ssh over HTTP or HTTPS, then you can use corkscrew.  http://www.agroman.net/corkscrew/

Author

Commented:
Thanks a lot guys
I'd have to try all this and get back to you, it might take me sometime though
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Author

Commented:
hi guys
i liked the no-ip thing a lot however the thing is that i guess even if ssh is allowed, this would put the person connecting directly to my router (its a unix box), while i want to connect to the pc
what i really want is something like Team Viewer for windows which connects you directly to the machine but for Linux i'd just be happy with connecting to the shell
Top Expert 2007

Commented:
Assuming the Linux server is natted, then you can just set up port forwarding on your router.

Author

Commented:
agree to that but my router is fairly old and no option for that :)
any other ideas ?

Commented:
Something similar was discussed in a previous answer, maybe it can help:

http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/bash/Q_24322762.html
Top Expert 2007

Commented:
dcesari, that link you posted isn't relevant to this problem.  

If the router can't do port forwarding, reverse natting or proxying, then I can't see any way of achieving what you need.

Author

Commented:
Guys i managed to upgrade my router and had port 22 forwarded and i was able to access it remotely from the internet but not across my company's firewall, please note that am doing this to access my powerful PC to study remotely on it so nothing against regulations
SO the firewall is denying this traffic, so i'd like to use a program on windows at the company to tunnel this ssh traffic over http while still achieving the same result
Top Expert 2007

Commented:
That's what corkscrew will allow you to do.

Author

Commented:
lol no :)
i managed to get it working now
simple upgraded the firmware, got port 443 forwarded, changed ssh to listen to 443 and used SSH on 443 and voila :)
I used no-ip for dynamic DNS as well so i will accept flob9 answer it was the best here

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial