morassman / atom-commander

Dual-pane file manager for Atom.
MIT License
33 stars 5 forks source link

Using SSH keys + control-master? #88

Open KlavsKlavsen opened 6 years ago

KlavsKlavsen commented 6 years ago

Hi guys,

I would like to use atom-commander instead of sshfs - for remote editing.. but if I add a server - it insists on wanting a password (v0.10.2).. I have no password for servers.. can only access via my yubikey which means pgp-agent acts as ssh-agent - so normal ssh works.. Also - I have "touch" enabled - so every time gpg key is used, I need to touch it. To "fix" this - I have enabled ssh's control master.. so I just have 1 connection open to the server I want to remote edit.. and then sshfs and sftp - just works without ever asking me for anything.

For some reason atom-commander doesn't work at all.. ?

morassman commented 6 years ago

Hi @KlavsKlavsen. atom-commander uses a third party package for its SFTP functionality called ssh2. All the Atom packages that has SFTP support uses it, so if it doesn't work with atom-commander then chances are it won't work with the others either. It might be worth trying though.

AFAIK the SSH protocol is implemented directly in the ssh2 package, or rather, it doesn't just wrap the ssh command you normally use from the terminal. The behaviour and features you expect from the ssh command therefore might not necessary be available when using an Atom package that depends on the ssh2 package.

Having said that. The ssh2 package does support ssh agents. I just haven't made provision for it in atom-commander. The following two packages did add support for it. Perhaps see if you can get it to work with one of them:

Let me know whether it worked. I will at some point add support for it to atom-commander as well.