You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
355 B
9 lines
355 B
#!/bin/bash
|
|
# Wrapper script to set SSH env vars so agent forwarding works when
|
|
# resuming screen sessions. Place at ~/bin/screen and make sure
|
|
# your personal bin directory has priority in your PATH
|
|
|
|
for SSHVAR in SSH_CLIENT SSH_TTY SSH_AUTH_SOCK SSH_CONNECTION DISPLAY; do
|
|
echo "export ${SSHVAR}=\"${!SSHVAR}\""
|
|
done > ~/.sshvars
|
|
/usr/bin/screen $*
|
|
|