You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#I'm using ssh-ident via a symlink. It confuses a filename with a hostname:
$ ls -l ~/bin/scp
lrwxrwxrwx 1 ravi ravi 18 Nov 24 2016 /home/ravi/bin/scp -> /usr/bin/ssh-ident
$ # Doesn't work:
$ ~/bin/scp stignoreandroid jnanidroid:ext
All keys already loaded
ssh: Could not resolve hostname stignoreandroid: Name or service not known
$ # But the unwrapped scp DOES work, with the same syntax
$ /usr/bin/scp stignoreandroid jnanidroid:ext
stignoreandroid 100% 451 3.4KB/s 00:00
$
The text was updated successfully, but these errors were encountered:
Or to enable use from inside scripts, call the following script ~/bin/ssh-ident-wrapper, and symlink it as ~/bin/scp: and ~/bin/ssh:
#!/bin/bash
# Wrapper to make ssh-ident work properly.
# See https://github.com/ccontavalli/ssh-ident/issues/35
set -euo pipefail
name=$(basename "$0")
# Assume that this script is in the path before anything else.
# Take the 2nd command as the one to execute
binary=$(which -a "$name" | sed -n '2p')
BINARY_SSH="$binary" ssh-ident "$@"
Questions
Why is this workaround required?
Why doesn't setting $BINARY_DIR make any difference?
#I'm using
ssh-ident
via a symlink. It confuses a filename with a hostname:The text was updated successfully, but these errors were encountered: