Cant ssh after setting Static IP

This forum is for all other ARMv5 devices

Cant ssh after setting Static IP

Postby dinjo » Fri Dec 09, 2011 4:11 pm

I was trying to set static ip in PogoPlug pro and set the below in rc.conf

$this->bbcode_second_pass_code('', 'interface=eth0
address=192.168.1.3
netmask=255.255.255.0
gateway=192.168..1.1
broadcast=192.168.1.2')

Ipconfig output

$this->bbcode_second_pass_code('', '
Connection-specific DNS Suffix . : Home
Link-local IPv6 Address . . . . . : fe80:***********************
IPv4 Address. . . . . . . . . . . : 192.168.1.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1')

Now i can see the device in ARP section of router but not visible in DHCP.Anyways i can get ssh into the anyways to rollback ?

Also added the Google DNS in /etc/resolv.conf
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Cant ssh after setting Static IP

Postby WarheadsSE » Fri Dec 09, 2011 4:13 pm

$this->bbcode_second_pass_quote('', 'g')ateway=192.168..1.1
broadcast=192.168.1.2

Whoops?

Should be
$this->bbcode_second_pass_quote('', 'g')ateway=192.168.1.1
broadcast=192.168.1.255


You can attach it to any linux system, and double check your settings.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cant ssh after setting Static IP

Postby dinjo » Fri Dec 09, 2011 4:19 pm

WTF that double ..

Dont have any other linux system I can try running Ubuntu from Live CD also about /etc/resolv.conf , problem is I cant even ssh.

EDIT - Would ssh works from Ubuntu
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Cant ssh after setting Static IP

Postby WarheadsSE » Fri Dec 09, 2011 4:26 pm

It's not about ssh, its about fixing your IP configuration.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cant ssh after setting Static IP

Postby dinjo » Fri Dec 09, 2011 4:30 pm

So for changing the file i have to ssh right or I'm getting it wrong ? When you attach to any linux system how ?

Cant even ping to the device 192.168.1.3
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Cant ssh after setting Static IP

Postby WarheadsSE » Fri Dec 09, 2011 5:01 pm

What system are you ssh'ing from? Can that system not be booted with a LiveCD or USB into Linux? Really, you just need to edit the file on that disk, which is obvious you can't do from ssh. You've screwed up the network configuration, which means ssh likely doesn't know what to listen on.

ARP does not mean that it is properly speaking across the entire IP stack, which is what ssh depends on.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cant ssh after setting Static IP

Postby dinjo » Fri Dec 09, 2011 5:04 pm

I tried ssh from Live Ubuntu even it cannot resolve the ip is it because i have added the details in /etc/resolv.conf

Can u explain whether i need to connect to pogo via router tself or you suggesting something else
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Cant ssh after setting Static IP

Postby pepedog » Fri Dec 09, 2011 5:13 pm

Unplug drive from pogo, plug into live system. You might have to e2fsck too
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Cant ssh after setting Static IP

Postby dinjo » Fri Dec 09, 2011 5:26 pm

Damn I never realize the files are in drive and not in router nand (I'm still coming out of dd wrt world; -) )
If that's the case I would be able to get it fixed just to confirm I have run a manual mount after plugging the drive or it would auto mount and just open the file in textpad.

Of to sleep now on mobile just to see status of thread will try it morning
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Cant ssh after setting Static IP

Postby dinjo » Sat Dec 10, 2011 5:20 am

Got the thing sorted, thanks for your help.

Note to self dont panic in case something goes wrong and read the post carefully :lol:
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Next

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 2 guests