LinuxQuestions.org
Register a domain and help support LQ
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 08-03-2013, 01:53 PM   #1
esso82
Member
 
Registered: Aug 2013
Location: Plymouth, UK
Distribution: SolydK
Posts: 45

Rep: Reputation: Disabled
SSH connection refused over Internet


Hello, this is my first post here, hope I went for the right subforum. Also, I'm no linux expert, just know to do a thing here and there.

My problem is, that I can't access a NAS device (WD MBWE White Light) with BusyBox on it over Internet. It works localy though. When I connect remotely via SSH on putty, I get the message about server key, I accept that, then I am propted to enter user name, and then a password, but when I enter password the server returns "Access Denied".

So I tried to generate key, use that but the server refuses the key as well.

What am I doing wrong? Port 22 on router is forwarded onto the device. Obviously I can connect localy over LAN. Help me please.
 
Old 08-03-2013, 02:42 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,012

Rep: Reputation: Disabled
Could it be that the router is running an ssh daemon, and that you're actually attempting to log in to the router rather than the NAT unit?

Check that the key matches the one displayed when you connect from inside the LAN.
 
Old 08-05-2013, 03:18 AM   #3
esso82
Member
 
Registered: Aug 2013
Location: Plymouth, UK
Distribution: SolydK
Posts: 45

Original Poster
Rep: Reputation: Disabled
No, the router is TP-Link TL-WR841ND running original FW, but will try to change the ssh port on the NAS and will try again. Thank you for the hint.
 
Old 08-05-2013, 04:16 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,563

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Quote:
Originally Posted by esso82 View Post
Hello, this is my first post here, hope I went for the right subforum. Also, I'm no linux expert, just know to do a thing here and there.

My problem is, that I can't access a NAS device (WD MBWE White Light) with BusyBox on it over Internet. It works localy though. When I connect remotely via SSH on putty, I get the message about server key, I accept that, then I am propted to enter user name, and then a password, but when I enter password the server returns "Access Denied".

So I tried to generate key, use that but the server refuses the key as well.

What am I doing wrong? Port 22 on router is forwarded onto the device. Obviously I can connect localy over LAN. Help me please.
in your LAN is the NAS the ONLY device that can use ssh? also does your router port forward port 22 to the NAS and the NAS LAN IP only?

sounds to me that something other then the NAS is getting the ssh prompt and you are not providing the correct user/pw challenge for that device.

edit to add:

also check to see if the NAS has a log file for attempted logins. see if it really is showing bad user/pw combo and that it is configured to accept connections via WAN, not just LAN.
 
  


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 - Connection Refused eminence Linux - Networking 14 03-06-2012 01:22 AM
SSH connection refused pgte3 Linux - Newbie 14 10-15-2010 02:41 PM
ssh connection refused - trying to set up ssh server at home openSauce Linux - Server 10 10-18-2007 05:38 PM
SSH connection refused theoneandonly19 Red Hat 1 07-01-2007 03:48 AM
ssh connection refused rguptatx Red Hat 4 11-13-2003 07:18 PM


All times are GMT -5. The time now is 07:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration