LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-24-2014, 01:31 PM   #1
judoka
Member
 
Registered: Jul 2009
Distribution: Ubuntu 14.04 LTS, CentOS
Posts: 218

Rep: Reputation: 16
Problems connecting to my computer through SSH and DLink router.


I have installed ssh server on my Ubuntu (12.04) machine and checked to see that it is running and works locally with
Code:
ssh -v localhost
But I can't get it to work if I log in from a different ip address. I have Dlink router and port forwarded port 22 for my ssh but still unable to log-in. I use the command
Code:
$ ssh my_ip_address
where my_ip_address is substituted with my actual ip. Does anyone have any idea what I am doing wrong?
 
Old 06-24-2014, 02:37 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Do you mean a machine on the internet? I take it you know your external internet IP address? What message do you see when you try to SSH to your machine?
You could always try something like this site from your Ubuntu machine to confirm that port forwarding is working:
https://www.grc.com/shieldsup
You should see port 22 as open.
 
Old 06-25-2014, 01:01 AM   #3
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
Well, pinging localhost will ping 127.0.0.1; whereas pinging my_ip_address will actually use the network.

Best guess: firewall is blocking, or nic misconfigured?
 
Old 06-25-2014, 11:04 PM   #4
judoka
Member
 
Registered: Jul 2009
Distribution: Ubuntu 14.04 LTS, CentOS
Posts: 218

Original Poster
Rep: Reputation: 16
After restarting and using $ssh user@ip everything started working.

Last edited by judoka; 06-25-2014 at 11:06 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SSH feature existancs? give access to computer from behind a router. RadioactiveCheese Linux - Networking 2 10-17-2006 07:32 PM
Connecting to Internet (adsl) VIA wireless router (dlink DI524UP krubby SUSE / openSUSE 2 09-20-2006 06:12 PM
SSH-ing to computer behind router ar1 Linux - Networking 1 01-09-2005 10:15 PM
problems connecting through DSL to Router to Computer ddrfreak Mandriva 2 12-20-2004 12:10 PM
connecting to internet via dlink router vasanthraghavan Linux - Networking 13 03-22-2004 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:20 AM.

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