On 12/16/08 1:18 PM, Yevgeny wrote:
>> Yeah, the connection issue is related to .ssh/config, then. I have no
>> idea what the correct behavior should be when there are two host entries
>> for the same IP? As I understand it, the IP's should be unique in there.
> With no username (`ssh -p [port] [remote-host-ip]`), `ssh` logs into
> the server with the first login name for the [remote-host-ip] (~/.ssh/
> config). That's how Capistrano is doing now.
> 
> I'd expect for Capistrano to look for the key of `ssh_options
> [:username]` login.
> 
> In terminal:
> $ ssh -p [port] local-usern...@[remote-host-ip]
> uses ~/.ssh/vps_me_rsa
> 
> $ ssh -p [port] rails-app-u...@[remote-host-ip]
> uses ~/.ssh/vps_rails_app_rsa

I'd consider a patch for that. It'd need to patch both Net::SSH and
Capistrano, though.

- Jamis

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to