LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2012, 01:16 PM   #1
ChiggyDada
LQ Newbie
 
Registered: Apr 2012
Distribution: Mint, CentOS, Unbuntu based
Posts: 24

Rep: Reputation: Disabled
How to SSH from coffee shop to home server behind router...what next?


Hi.
I am trying to SSH into my home server from a coffee shop to DL a file I have on there to my laptop at the coffe shop.
1) The server is at my house
2) I've installed and configured the SSH server and copied keys to and from the laptop to the server and laptop... etc.
3) Server resides behind an actiontec GT701-WG router. and has two basic hubs between it and the router.
4) Server and routers and hubs all have static IP's.
5) I have the router outside IP.
6) I've forwarded a port to the server (let's call it port-xyz) in TCP and DHP/DHC (?)...

Now I am here at the coffee shop...

My log in credentials (user name and password) for the laptop are identical to the server.
How do I connect and how do I browse a folder on my server?
IS there something to check?
I actually don't know the terminal commands to do any of this yet- I'd love a link to a tutorial... what am I looking for to google?

Thanks a ton!
p.s. Server and laptop both running Mint 11.10. I can't ping my server from outside the LAN yet. I don't know the command to ping THROUGH the router IP to the server IP on the inside of the LAN from here...!!!

Last edited by ChiggyDada; 04-26-2012 at 01:19 PM. Reason: more details
 
Old 04-26-2012, 01:48 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You can't ping through your router. The command to connect to your server (if you have a correct setup) should be
Code:
ssh -p port-xyz public-ip
 
Old 04-26-2012, 01:59 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
SSH uses port 22, so you have 3 options as far as I can see

1) Change the SSH listening port on the server to include port xyz, then SSH in on that port
2) Change your router to forward incoming connections on port xyz to port 22 on your server
3) Change your router to forward incoming connections on port 22 to your server

Forwarding port xyz to the server won't do anything unless the server is listening for incoming connections on that port.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enable 2 ssh server : one for /home and one for /home/theuser only? frenchn00b Linux - Server 14 05-06-2008 05:37 PM
Just in the occasional coffee-shop . . . sundialsvcs Linux - Wireless Networking 1 03-22-2006 07:22 AM
Wow, the coffee shop I frequent switches to Linux jaz General 9 11-19-2005 07:04 PM
want to ssh/ftp to home machine (Slack) from office through home router fincher69 Linux - Networking 2 09-21-2005 10:55 PM
Setup ssh and vpn router from home: suggestions/help GATTACA Linux - Networking 2 09-13-2005 08:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration