On Fri, Dec 12, 2014 at 10:46 PM, Mark Goldstein <goldstein.mark@gmail.com> wrote:
On Fri, Dec 12, 2014 at 10:04 PM, Carlos E. R. <robin.listas@telefonica.net> wrote:
Ok, you tell us the results :-)
OK, looks like it works. I had to look into the code to figure it out...
Let's say our priv/public key are in standard id_rsa and id_rsa.pub files in ~/.ssh (and of course copied to the destination host with ssh-copy-id)
1) It turned out that mc uses file ~/.ssh/config for sftp configurations.
2) This file should contain sections per destination host. I eventually wrote the following:
Host DestHostName User Username # Not sure it is needed, current user name will be used if omitted PasswordAuthentication FALSE PubkeyAuthentication TRUE IdentityFile id_rsa
Some clarifications. ~/.ssh/config is common for ssh client and its syntax is a bit different... Host could contain a number of names (e.g. name and IP address, separated by whitespace), or * meaning all hosts. But it looks like mc does not like more than one name. I did not try * User mane is only needed if user name on remote host is different from local user name. Correct values for Boolean keys are not FALSE and TRUE (though mc implementation understands them) but "yes" or "no" IdentityFile should contain path to the file, e.g. ~/.ssh/id_rsa So the section should look like that: Host hostname PasswordAuthentication no PubkeyAuthentication yes IdentityFile ~/.ssh/id_rsa -- Mark Goldstein -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org