Configuring Shell link in Midnight Commander for public key authentication
https://4sysops.com/archives/midnight-commander-remote-connect-via-shell-link-copy-files-over-ssh-and-sftp-link-using-fish-and-public-key-authentication/
Hallo Users,
es gibt Problem bei mir.
ssh -i ~/.ssh/id_rsa root@192.168.178.133 -p 22222
config
Host yourHost
HostName 10.0.0.1
Port 2222
User ubuntu
IdentityFile ~/.ssh/privatekey.key
Wie muss die config für den "ssh Befehl" umgesetzt aussehen?
Host yourHost
HostName 192.168.178.133
Port 22222
User root
IdentityFile ~/.ssh/id_rsa
Damit komme ich nicht in auf das System mit der IP-Adresse 192.168.178.133 .
Ist in der Anleitung evtl. ein Fehler, es wird yourHost und myhost verwendet?
However, it appears the SFTP implementation in Midnight Commander has a bug that has never been fixed. The SFTP link command ignores the SSH config file. This means you can't use public key authentication. Instead, you have to work with password authentication, which I don't recommend. So the best option is just to work with Shell link instead of SFTP link.
MC Bug https://midnight-commander.org/ticket/3238
apt show mc
Package: mc
Version: 3:4.8.27-1
Priority: optional
Section: universe/utils
Origin: Ubuntu
Greetz
undine