The ssh command automatically tries to use ~/.ssh/id_rsa as a private ssh key, while termscp doesn't. Termscp needs IdentityFile ~/.ssh/id_rsa to be explicitly specified in the config file.
Steps to reproduce
Given the following entry in ~/.ssh/config:
Host myserver
Hostname 1.2.3.4
User ubuntu
IdentityFile ~/.ssh/id_rsa
both ssh myserver and termscp myserver work as expected.
But if I remove IdentityFile from ~/.ssh/config:
Host myserver
Hostname 1.2.3.4
User ubuntu
then ssh myserver still works.
But termscp myserver asks for a password. When I press enter, it fails to log in with the following message:
authentication failed ([Session(-18)] Authentication failed (username/password))
Expected behaviour
If ssh myserver works in the absence of IdentityFile, then termscp myserver works, too.
Description
The
ssh
command automatically tries to use~/.ssh/id_rsa
as a private ssh key, while termscp doesn't. Termscp needsIdentityFile ~/.ssh/id_rsa
to be explicitly specified in the config file.Steps to reproduce
Given the following entry in
~/.ssh/config
:both
ssh myserver
andtermscp myserver
work as expected.But if I remove
IdentityFile
from~/.ssh/config
:then
ssh myserver
still works. Buttermscp myserver
asks for a password. When I press enter, it fails to log in with the following message:authentication failed ([Session(-18)] Authentication failed (username/password))
Expected behaviour
If
ssh myserver
works in the absence ofIdentityFile
, thentermscp myserver
works, too.Environment