LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-03-2012, 07:35 PM   #1
wootletootle
Member
 
Registered: Jul 2002
Location: New Zealand
Distribution: slackware
Posts: 81

Rep: Reputation: 15
How to SSH to router?


Previously I was able to ssh to my D-link router with

$ ssh admin@192.168.0.1

and then supply the password. after this I got a router prompt
and could explore the router OS. Here "admin" is the router username
and 192.162.0.1 is the router IP on the LAN

However if I issue the same command with my current Netgear router/modem
I get the response

ssh: connect to host 192.168.0.1 port 22: Connection refused

Is this a router configuration issue to do with port 22 and how do I fix it?

Thank you.
 
Old 06-03-2012, 07:52 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
What is the model number of your router?
Does this router have SSH capability?
 
Old 06-03-2012, 07:56 PM   #3
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
As long as I know Netgears don't accept ssh connections. You can only access them via web interface.
 
Old 06-03-2012, 08:00 PM   #4
wootletootle
Member
 
Registered: Jul 2002
Location: New Zealand
Distribution: slackware
Posts: 81

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by michaelk View Post
What is the model number of your router?
Does this router have SSH capability?
Thanks Michael.

It is a Netgear N300 Wireless ADSL2+ Modem router
model # DGN2200v3

I googled on "ssh DGN2200v3" but got no positive
or negative confirmation of SSH capability.

Any further suggestions?
 
Old 06-03-2012, 08:01 PM   #5
wootletootle
Member
 
Registered: Jul 2002
Location: New Zealand
Distribution: slackware
Posts: 81

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ottavio View Post
As long as I know Netgears don't accept ssh connections. You can only access them via web interface.
Thanks, Ottavio. I guess that answers my question.
 
Old 06-03-2012, 08:17 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I also am not aware of Netgears natively having that capability.
However, I believe that dd-wrt supports this model and has ssh capability if you are are willing to install it.
 
1 members found this post helpful.
Old 06-03-2012, 09:38 PM   #7
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
I've found several species of consumer network gear that don't do SSH, but do telnet.
 
Old 06-06-2012, 12:02 AM   #8
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Netgear as some docs on activating telnet (needs Windows?), but not ssh. There are some cases of adding ssh to the sock firmware for some models. Best bet is to flash DD-WRT or OpenWRT (most Netgear routers run a customized OpenWRT build). Another option is Gargoyl http://www.gargoyle-router.com/ a customization of OpenWRT.

Edit: my bad. None of the fireware sources support your modem.

Last edited by kingbeowulf; 06-06-2012 at 12:22 AM.
 
Old 06-06-2012, 06:57 PM   #9
kwill
Member
 
Registered: Jul 2007
Location: Horowhenua New Zealand
Distribution: (X)(K)ubuntu PCLinuxOS Mepis Puppy
Posts: 80

Rep: Reputation: 18
That modem uses a web interface. I have one.

Does your wireless switch off when you press second switch down?
 
Old 06-07-2012, 02:49 AM   #10
nestlyp
LQ Newbie
 
Registered: Jun 2012
Location: riga, latvia
Distribution: Slackware 13.37
Posts: 3

Rep: Reputation: Disabled
ssh 192.168.0.1
then router will request username and pass that's what my router does.
 
Old 08-01-2012, 08:14 PM   #11
fritz_da_silva
LQ Newbie
 
Registered: Aug 2012
Distribution: debian stable
Posts: 2

Rep: Reputation: Disabled
hey all,

i have a netgear n150 dvg1000. i can't ssh to the routers ip's which is 192.168.0.254

if i go to my router status web browser http://192.168.0.254:80, i find in the ADSL Port session the following ip whose port 22 is open

Gateway IP Address 10.41.79.254

the problem is that i don't know username and password. i tried the most obvious things, but couldn't get it.

does anyone know what that is about?


my modem came all locked up, and i can't change any configuration even after resetting to factory settings. And i would like to use its usb port for a harddisk.


cheers
daniel
 
Old 08-01-2012, 09:14 PM   #12
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
Try Mfg Web Site

I've found that I could go to the router's manufacturer's web site support pages and find the default account/password settings for a router.

Note that on some routers the reset button has to be pushed for a long time (> 30 seconds) to actually have the reset work. This should all be mentioned on the manufacturer's web site.

Last edited by TracyTiger; 08-01-2012 at 09:16 PM.
 
Old 08-02-2012, 07:35 PM   #13
OldHolborn
Member
 
Registered: Jul 2012
Posts: 229

Rep: Reputation: 190Reputation: 190
This might help

http://wiki.openwrt.org/toh/netgear/telnet.console
 
  


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
IRCd / Router / SSH ??? intricatic Linux - Networking 8 05-15-2007 09:37 PM
Got new router, can't ssh in now Chuk Linux - Networking 2 10-16-2004 01:52 AM
ssh and router, I need help. babyboss Linux - Networking 4 09-22-2004 11:40 AM
SSH , RH 9 and router weird_guy Linux - Networking 6 07-13-2003 09:17 PM
ssh behind a router The sakkie Linux - Networking 16 07-12-2003 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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