search for: ssh_client

Displaying 20 results from an estimated 84 matches for "ssh_client".

2000 Sep 24
4
SSH_CLIENT _not_ set when doing a command
.../updatedns 10.1.2.3) This al works fine and dandy. I would like to protect this scheme more by using the command="<command>" feature, the only problem is that i can't use an ip-number in authorized_keys (because i do not know it). In an interactive shell, the env variable 'SSH_CLIENT' is set, and this variable can easily be parsed for the connecting ipnumber. The real problem is that this variable is _not_ set when just executing a remote command. Is it possible to retrieve the ipnumber of the connecting client while executing a remote command? Simply turning on the envir...
2001 Feb 20
1
2.5.1p1 ssh-agent path problem in Solaris
I'm having a path problem with OpenSSH 2.5.1p1 in Solaris (7). When ssh-agent is run, environment variables aren't being passed to the spawned shell. sol# env | wc -l 23 sol# env | grep -i ssh SSH_CLIENT=10.0.1.146 1047 22 SSH_TTY=/dev/pts/0 sol# sol# ssh-agent sh sol# env | wc -l 1 sol# env SSH_AGENT_PID=12032 sol# If I set SSH_AUTH_SOCK manually, ssh-agent (and ssh-add) does function properly... sol# find /tmp -name 'agent*' -exec ls -l {}...
2002 Sep 04
4
Determining Local IP Address within .profile
Hi ! I haven't found an easy solution to determine the local IP to which the remote SSH client is connected to the local SSHD. We use MC/Serviceguard which can create many Interfaces where a remote client could connect and we like to know within .profile which interface the client has connected to. I've looked at the sourcecode and maybe the following could do something I described :
2011 May 19
2
unicorn doesn't restart properly after cap deploy (not using Bundler)
...rprise-1.8.7-2010.02/bin" ? STDERR.puts ENV.inspect end Below is the output from unicorn.stderr.log.. I''m not sure if UNICORN_FD has something to do with it? 1) starting unicorn BEFORE FORK: {"SHELL"=>"/bin/bash", "TERM"=>"xterm", "SSH_CLIENT"=>"24.23.182.32 38170 22", "OLDPWD"=>"/root", "SSH_TTY"=>"/dev/pts/5", "USER"=>"root", "SSH_AUTH_SOCK"=>"/tmp/ssh-eeoDcvH461/agent.461", "PATH"=>"/usr/local/sbin:/usr/loca...
2007 Apr 04
5
sshkey
Hello all, How are you using the sshkey type? Are you using it to list hosts and keys in a class that nodes include in order to manage /etc/ssh/ssh_known_hosts or something else? How does any of this relate to the sshrsakey and sshdsakey facts on the host? I read some stuff about this on the Virtual Resources page but it''s too vague for my simple mind and I''d be reluctant to use
2013 Jun 08
4
"Virtual hosts" for ssh
It'd be very cool if ssh supported something like Apache "virtual hosts". This would make it much more viable to host multiple installs of git on the same server, for example. More details: On the remote server, ssh already sets some environment variables: > printenv | grep SSH SSH_CLIENT=192.168.1.18 50945 22 SSH_TTY=/dev/pts/1 SSH_CONNECTION=192.168.1.18 50945 192.168.1.1 22 What about adding another, say SSH_SERVER_HOST=host1 Assuming that /etc/hosts 192.168.1.1 host1 host2 then ssh user at host1 and ssh user at host2 would lead to a shell on the same host with the same user, b...
2004 Apr 06
2
[Bug 834] timezone settings on irix lost
...d on an irix and a linux box to see what was being set: ssh hostname "export" IRIX: DISPLAY=localhost:10.0 HOME=/root LOGNAME=root MAIL=/usr/mail//root PATH=/usr/sbin:/usr/bsd:/sbin:/usr/etc:/usr/bin:/usr/bin/X11:/usr/LOCAL/ssh/bin:/usr/LOCAL/bin:/usr/local/bin: PWD=/root SHELL=/bin/ksh SSH_CLIENT='xxx.xxx.xxx.xxx 53599 22' SSH_CONNECTION='xxx.xxx.xxx.xxx 53599 xxx.xxx.xxx.xxx 22' USER=root Linux: declare -x DISPLAY="localhost:11.0" declare -x HOME="/root" declare -x LOGNAME="root" declare -x MAIL="/var/mail/root" declare -x OLDPWD de...
2003 Oct 07
0
FW: Environment passing in Solaris 8 with later versions of SSH a nd UseLogin=yes
...ttempting to trace > the program execution flow) > > debug1: Authentication succeeded (publickey). > debug1: channel 0: new [client-session] > debug1: Entering interactive session. > debug1: JRT-03: do_pre_login > debug1: JRT-04: do_child > Environment: > TZ=NZ > SSH_CLIENT=xxx.xx.xx.xxx 34811 2222 > SSH_CONNECTION=xxx.xx.xx.xxx 34811 xxx.xx.xx.xx 2222 > SSH_TTY=/dev/pts/6 > TERM=xterm > debug1: JRT-05: launch_login > > However, if I then query the environment of the logged in > process, none of the variables have been set properly, thus:...
2002 Aug 13
3
[Bug 384] OpenSSH should store an SSH_SERVER variable for cluster hosts
...berg.org 2002-08-14 05:43 ------- Created an attachment (id=137) --> (http://cvs-mirror.mozilla.org/webtools/bugzilla/attachment.cgi?id=137&action=view) 2 line patch for SSH_SERVER variable with incoming IP & port This patch adds an SSH_SERVER variable as a counterpart to the existing SSH_CLIENT variable. Instead of storing the client IP & port, it stores the server IP and port. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2017 Apr 26
2
sshd: SSH_CLIENT_CERT and SSH_CLIENT_PUBKEY env variables
Hello, There are environment variables SSH_CLIENT and SSH_CONNECTION with information about client of current session. I want to implement new variables with info about credentials used for session authentication. Such as: SSH_CLIENT_CERT SSH_CLIENT_CERT_ID SSH_CLIENT_CERT_PRINCIPALS SSH_CLIENT_PUBKEY SSH_CLIENT_PUBKEY_FINGERPRINT Some of that...
2013 Apr 04
1
Using "root" Type User Via Forwarding-SSH-Tunnel Inside Non-Root SSH Connection
...IVIL and CRIMINAL PENALTIES ... * ... * Your connection IP ADDRESS, PORT, and TIME info etc are recorded by this computer. *********************************** In /etc/profile file, i have placed these below 13 lines just above the "unset i" line, at bottom side: if [ -n "$SSH_CLIENT" ] then set $SSH_CLIENT echo "Your current connection coming from IP Address $1 using port $2, to this computer." else if [ -n "$SSH_CONNECTION" ] then set $SSH_CONNECTION echo "Your current connection coming from IP Address $1 using port $2, to this computer.&...
2003 Sep 29
1
Environment passing in Solaris 8 with later versions of SSH and U seLogin=yes
...e client attempts to login: (the JRT lines are my attempting to trace the program execution flow) debug1: Authentication succeeded (publickey). debug1: channel 0: new [client-session] debug1: Entering interactive session. debug1: JRT-03: do_pre_login debug1: JRT-04: do_child Environment: TZ=NZ SSH_CLIENT=xxx.xx.xx.xxx 34811 2222 SSH_CONNECTION=xxx.xx.xx.xxx 34811 xxx.xx.xx.xx 2222 SSH_TTY=/dev/pts/6 TERM=xterm debug1: JRT-05: launch_login However, if I then query the environment of the logged in process, none of the variables have been set properly, thus: user at host:~$ echo $SSH_CLIENT u...
2006 Feb 17
3
Switchtower (0.10.0), ssh and environment confusion
...: loading configuration ./config/deploy.rb executing task show_env executing "env" servers: ["foo.dartmouth.edu"] processing command [foo.dartmouth.edu] executing command [out :: foo.dartmouth.edu] TERM=xterm [out :: foo.dartmouth.edu] SHELL=/bin/bash [out :: foo.dartmouth.edu] SSH_CLIENT=x.x.x.x 55394 22 [out :: foo.dartmouth.edu] SSH_TTY=/dev/ttyp0 [out :: foo.dartmouth.edu] USER=brianvh [out :: foo.dartmouth.edu] MAIL=/var/mail/brianvh [out :: foo.dartmouth.edu] PATH=/usr/bin:/bin:/usr/sbin:/sbin [out :: foo.dartmouth.edu] PWD=/Users/brianvh [out :: foo.dartmouth.edu] SHLVL=1 [ou...
2017 Jun 01
2
Get remote address when using direct-streamlocal@openssh.com.
...ts can connect to using direct-streamlocal at openssh.com. I want that the server "knows" the address of the client. I've tried using the peercredentials of the process connecting my server (which is a sshd process) and check the environment. I thought that in the environment the var SSH_CLIENT would be set, but that did not work. This sshd process has an almost empty environment file. Is there another good way to find it? Thanks in advance, Stef Bon
2001 Jun 23
1
pam session
...his way: > ssh user at server /bin/sh Interestingly, Debian 2.2's openssh (1:1.2.3-9.3) does enforce rlimits somehow, not sure if it was specifically patched to do this or perhaps the older version just does not have this problem. Just an FYI, while messing with this I also notice that the SSH_CLIENT and SSH_TTY environment variables are not being set, and no authlog message is generated. (Neither of these problems exist in the Debian build.)
2001 Oct 13
0
local IP in environment
I'm not sure if this is useful to anyone, but I made a small patch to include the local IP address that the user connected to in the environment (the opposite of SSH_CLIENT). The variable is called SSH_LOCAL. -Eric -------------- next part -------------- *** openssh-2.9.9p2/canohost.c.bak Sun Jun 24 22:01:24 2001 --- openssh-2.9.9p2/canohost.c Fri Oct 12 16:52:09 2001 *************** *** 255,260 **** --- 255,281 ---- return get_socket_address(socket, 0, NI_NAMERE...
2011 Oct 14
1
Determining the port assigned by -R 0
...ntly any sane way to get this information? For the short term I'll probably just parse the plaintext "Allocated port..." message, but that's obviously not a reliable solution. It would be helpful if a list of forwarded ports was stored in a parsable environment variable, as with SSH_CLIENT. -- Glenn Maynard
2002 Jun 02
1
How do I find the client key?
All, This may be a simple question, but I can't find the answer... The situation... Clint "C" connects to server "S". On server "S" I can find the client IP (IPv6) address in the SSH_CLIENT environment variable. I also need the client public key. On the client side, the public key ends up added to .ssh/known_hosts but what happens on the server side? I need to retrieve this key to validate the entry of a host name against a table of hosts which have previously contacted me (on possi...
2007 Nov 05
1
klibc sparc trouble with gcc > 4.0
...ub/scm/libs/klibc/klibc.git with belows fix klibc compiles fine on sparc with newer gcc, but segfaults: titan:~# strace -vfF /usr/lib/klibc/bin/fstype execve("/usr/lib/klibc/bin/fstype", ["/usr/lib/klibc/bin/fstype"], ["SHELL=/bin/bash", "TERM=xterm", "SSH_CLIENT=[myip] 39403"..., "SSH_TTY=/dev/pts/0", "USER=root", "LS_COLORS=no=00:fi=00:di=01;34:l"..., "PATH=/usr/local/sbin:/usr/local/"..., "MAIL=/var/mail/root", "PWD=/root", "LANG=en_US.UTF-8", "PS1=\\h:\\w\\$ ", "HO...
2005 Jun 27
2
Root privilege solution
...tocol data stream (code 12) at io.c(420) Here is the o/p from the wrapper script. Args --server --daemon .. /nfs/home/tinsless _=/usr/bin/env PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/ssh/bin LOGNAME=tinsless MAIL=/var/mail/tinsless USER=tinsless SHELL=/usr/bin/ksh HOME=/nfs/home/tinsless SSH_CLIENT=172.16.208.14 65476 22 SSH_CONNECTION=172.16.208.14 65476 172.16.208.41 22 PWD=/nfs/home/tinsless TZ=EST5EDT uid=320(tinsless) gid=200(sa) groups=4(adm) _=/usr/bin/sudo PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/ssh/bin LOGNAME=root MAIL=/var/mail/tinsless USER=root SHELL=/usr/bin/ksh HOME=...