publickey authentication only works with existing ssh session
- by aaron
publickey authentication only works for me if I've already got one ssh session open.
I am trying to log into a host running Ubuntu 10.10 desktop with publickey authentication, and it fails when I first log in:
[me@my-laptop:~]$ ssh -vv host
...
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/me/.ssh/id_rsa
...…