D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Default gateway disappears when a root SSH putty connection is used?

 

Hi

Still haven't cracked the problem.

if you ssh from another linux machine using root you get the following 
"RTNETLINK answers: Network is unreachable " message. and at this point the 
default gateway disappears.

The only change that i am aware of is we changed our network ip's, these are 
static.

If you VNC to the machine and open a root terminal you don't get the 
problem.

The ssh scripts are as default and have compaired against another machine.

Regards

Sam




----- Original Message ----- 
From: "Simon Waters" <simon@xxxxxxxxxxxxxx>
To: <list@xxxxxxxxxxxxx>
Sent: Tuesday, January 27, 2009 2:04 PM
Subject: Re: [LUG] Default gateway disappears when a root SSH putty 
connection is used?


> Sam Grabham wrote:
>> Hi
>>
>> I have a strange problem i am currrenly looking at, when a root user
>> connects via a windoze/putty connection, the default gateway is removed. 
>> If
>> you connect with another user the gateway remains.
>
> Probably only root user has permission to delete the default route, so
> the deletion fails with other users?
>
>> Have looked at the files in the /root folder, profiles etc. Started to 
>> look
>> into the sysctl file and /etc/ssh etc.
>>
>> Does any one know of a url that explains a step by step on scripts called
>> when ssh console opened?
>
> SSH is complex. My best guess would be a "tun" device, and the Windows
> client set to use (or ask for) some sort of tunneling protocol. If you
> had a VPN or PPP link configured on the box in the past it might hit the
> same name and call the interface up/down scripts.
>
> Might be easier to try it as a non-root user and look for the "failed to
> change route" statement - possibly some sort of IOCTL error.
>
> Please try not to hijack threads -- this isn't anything to do with SVN.
>
> -- 
> The Mailing List for the Devon & Cornwall LUG
> http://mailman.dclug.org.uk/listinfo/list
> FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html


--------------------------------------------------------------------------------



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.15/1924 - Release Date: 1/29/2009 
5:57 PM


-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html