LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 12: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, 01:42 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

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, 02: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, 03:16 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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 15 02-11-2020 09:48 AM
SSH connection refused pgte3 Linux - Newbie 14 10-15-2010 01:41 PM
ssh connection refused - trying to set up ssh server at home openSauce Linux - Server 10 10-18-2007 04:38 PM
SSH connection refused theoneandonly19 Red Hat 1 07-01-2007 02:48 AM
ssh connection refused rguptatx Red Hat 4 11-13-2003 06:18 PM

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

All times are GMT -5. The time now is 01:32 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