On Fri, Dec 12, 2014 at 10:04 PM, Carlos E. R. <robin.listas@telefonica.net> wrote:
On 2014-12-12 17:28, Mark Goldstein wrote:
On Fri, Dec 12, 2014 at 2:23 PM, Carlos E. R.
. (I needed sftp access
from windows to Unix servers and while putty/psftp was often failing, mc under cygwin worked very well). TC is good, I use it in M$ Windows and Android.
I use one I don't remember the name unless I boot Windows in my laptop. Ah, yes, WinSCP. Quite useful. Double panel.
Ah, I know and use this one for scp into virtual machines, for example.
tkdiff?
Ah, two panel diff editor? I prefer "meld", intuitive and powerful.
Will check it, thanks.
And... "tkdiff %f %D/%f" So you open both files on a single command. I like that, I wanted to do that with meld and others. Do you place it in a shortcut, or type it?
You can do it either way (it is just an example - put on command line highlighted file on current panel (%f) then directory on the opposite panel (%D), / and the same file name. %F is file highlighted on other panel. (Another usefull one is %T - list of selected files....))
Will try public key with MC during weekend.
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 That's it, I've got connected. -- Mark Goldstein -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org