I have sshd
set up in a remote host with bunch of environment variables set. Then I ssh'd into it and get the following with: ps
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 112868 4208 ? Ss 19:27 0:00 /usr/sbin/sshd -D -e
root 127 0.0 0.0 148480 5372 ? Ss 19:34 0:00 sshd: root@pts/0
root 129 0.0 0.0 13392 1892 pts/0 Ss 19:34 0:00 -bash
Current pid
is 129
. Its parent is 127
, whose parent is 1
.
How do I get my current ssh session to have all environment variables from the initial sshd
process? Both the current process and its parent don't have environment variables that are set in sshd.