changing forwarded agent socket path (openssh 5.4)


when I forward a ssh agent to a remote host the corresponding socket
path on the host looks looks like (I use OpenSSH_5.4p1):


Is there a way to replace that with a predefined path?

The reason I need this is that on that host I use a screen program.
The shells running under the screen when I attach to it do not know
about the new socket. They inherit the environment when the screen has
started, not when the connection is made.

To workaround that when I connect I create a symlink like
$HOME/forwarded_agent_socket that points to the real socket and set
SSH_AUTH_SOCK to $HOME/forwarded_agent_socket. That works but it would
be nice if I could avoid this symlink and just make sure that sshd
uses $HOME/forwarded_agent_socket directly.

Regards, Igor

Relevant Pages

  • Re: more details
    ... and now, before accessing remoteadmn, if i try to access \\box from my host ... 00053CB0:00000004, NTLM ... on socket 15 ... on overlapped WSASend() ...
  • RE: help: raw_ip socket and system implication
    ... Subject: help: raw_ip socket and system implication ... you can also borrow an unused ip address on the same subnet as the host you ... the same mac address as your source host). ...
  • Re: no route to host
    ... If you are saying that 'connect' returns 'no route to host', ... this step will give my socket a random source address. ... if(sockfd < 0) ...
  • Re: Socket error handling
    ... currently I do a socket connect. ... Now when both ipaddresses are online no error is given, logical offcourse. ... foreach ($hosts as $host) { ... Basically, it looks a little inefficient to check is_resource at least twice (1 to n failed hosts in the foreach loop, and once after the foreach loop). ...
  • Re: dell axim VPN sync problems
    ... Error 10048 binding Socket: ... Listening on PROTOCOL 47 for incoming GRE packets... ... Obtaining host information... ... creating a socket to test GRE protocol traffic... ...