Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-03-2013, 12:53 PM
|
#1
|
Member
Registered: Aug 2013
Location: Plymouth, UK
Distribution: SolydK
Posts: 45
Rep: 
|
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.
|
|
|
08-03-2013, 01:42 PM
|
#2
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349
Rep: 
|
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.
|
|
|
08-05-2013, 02:18 AM
|
#3
|
Member
Registered: Aug 2013
Location: Plymouth, UK
Distribution: SolydK
Posts: 45
Original Poster
Rep: 
|
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.
|
|
|
08-05-2013, 03:16 PM
|
#4
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
|
Quote:
Originally Posted by esso82
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.
|
|
|
All times are GMT -5. The time now is 01:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|