I'm trying to send a file to a remote system:
@ravi@svelte:~$ scp /etc/btrbk/btrbk.conf ravi@tara:
All keys already loaded
ssh: Could not resolve hostname /etc/btrbk/btrbk.conf: Name or service not known
@ravi@svelte:~[255]$ ls -l /etc/btrbk/btrbk.conf
-rw-r--r-- 1 root root 5,558 Feb 19 20:06 /etc/btrbk/btrbk.conf
@ravi@svelte:~$
Why is scp
thinking that the first argument is a hostname, rather than a filename?
I'm running OpenSSH_7.4p1, OpenSSL 1.0.2j 26 Sep 2016
.
scp
in your system? It looks like some alias orbash
function. What doestype scp
return? Do you have something in youssh_config
?~/bin/scp
as a symlink to/usr/bin/ssh-ident
. I've raised an issue for this.