Re: PATH altered for SSH client (SSH Secure Shell 3.0.1)

From: Mark Rafn (dagon@dagon.net)
Date: 04/30/02


From: dagon@dagon.net (Mark Rafn)
Date: 29 Apr 2002 23:14:49 GMT

In article <3CCD6B0A.9E6B25D0@trentu.ca>, Chris Los <clos@trentu.ca> wrote:
>When my ssh client connects to the server the client's PATH variable
>seems to mysteriously adopt some extra directory names along the way. I
>can't determine why these extra directory names are getting appended to
>the PATH and the client should not have them in the first place. My hunch
>is that somehow the client is adopting these PATH settings on login from
>the sshd2 process on the server side. But how?

I'm not sure I understand. The client's PATH is changing? If A is the
client and B is the server, you can do:

A$ echo $PATH
A$ ssh B
B$ exit
A$ echo $PATH

and see DIFFERENT results from the two echo statements? That seems very
very unlikely.

If you mean

A$ echo $PATH
A$ ssh B
B$ echo $PATH

then I'm surprised that you think this is a problem with ssh. I expect
your login process on B includes something that sets the path, and it's
working correctly.

--
Mark Rafn    dagon@dagon.net    <http://www.dagon.net/>  



Relevant Pages

  • Re: Explanation of SSH
    ... I am still unclear on how SSH works exactly. ... Client issues SSH command and names server ... "Shopper" says "server sends back its public host and server keys ... Surely there is only one public key it sends ...
    (comp.security.ssh)
  • Re: ssh security question
    ... In my case - the client is a windows client and the ssh is embedded into the windows nx client. ... Is there any reason I can't run ssh-keygen on the server and copy the private key to the client - and the public key to the "authorised" directory? ... sniffer can catch your passwords, and it would make it trivial to log in ...
    (SSH)
  • Re: Publishing a SSH Server
    ... Your unix box cannot reply to SSH request, ... Create a client address set for your unix box (ip address from to are the ... Jim Harrison [ISA SE] ... In that case the server is a SecureNET client but still it doesn't work.... ...
    (microsoft.public.isa.publishing)
  • Re: FC6 VPN
    ... Then you can run any application you would like off the server by simply running it, or if you want to run a whole session, use gnomesession. ... ssh client that supports X forwarding, which is want you want to be looking at. ... SSH allows you to forward any local port to any remote port. ... If you need to connect to, say a windows share, you would forward your local port to the linux server through the ssh tunnel. ...
    (Fedora)
  • Re: Password less login between client & server, server & client
    ... password less logins on both the ssh client and ssh server. ... Login as the user that is making the connection. ...
    (comp.security.ssh)