I try to connect to remote server in one of two panels of Midnight Commander using SFTP link... submenu. Unfortunately, mc does not pass my
~/.ssh/config file to
sftp. Therefore typing
sftp://myhostalias results in error message
Cannot chdir to "/sftp://myhostalias"
Here is a content of
Host myhostalias HostName server.url.domain User myusername IdentityFile ~/.ssh/id_rsa-myhostalias
Please, note the following:
sftp://[email protected]works fine followed by inputting my password. I guess, this should not work if password authentication is disabled.
sftp myhostaliasfrom terminal also works fine.
What way should I connect to the remote server from mc SFTP link... menu using the aliases from my current ssh config?