Krusader : is it possible to connect to remote server with identity file?
Asked Answered
Z

3

5

I am using https://krusader.org/ in Ubuntu. Do you know if it possible to connect using a private SSH key (pem/ppk file)? I cannot find documentation about that.

Zenaidazenana answered 1/5, 2017 at 5:45 Comment(0)
Z
8

I found an answer using ~/.ssh/config file. Essentially, (create &) edit the above file to include text which looks something like:

Host alias_name
    User user
    HostName host.com
    IdentityFile key.pem

See link for details.

Then, tell Krusader (or ssh in terminal) to connect to alias_name without password or user information.

Ubuntu is FUN!

Zenaidazenana answered 1/5, 2017 at 6:8 Comment(7)
Sorry, where to tell Krusader to use this alias?Deroo
Well, my krusader does not recognize my config.Circumference
@Circumference open terminal and type ssh <alias_name>, it might lead you to what is wrong. Mine was also not working in Krusader at first, but in terminal i got error that i had set wrong path to key (and when i fixed it, that i have bad permission set on key). After i fixed my errors it works flawlessly.Corin
I've downvoted this answer because there is no mention of how to actually use ssh alias config files in Krusader; as far as I can see this is not possible. 'New network connection' option only accepts host + u/n + pass. So where did you input this config in Krusader?Everett
yeah, assigning the alias in ~.ssh/config is no problem, but the alias in the URL field of Krusader isn't interpreted corretcly but as (missing) file instead. So something is missing. Calling it with sftp:// doesn't work either, then the authentication is failing. in the console it's working though with ssh, so there is something unclear or just not possible (anymore ?).Prelacy
@Prelacy It is possible on Krusader with version 2.7.2. Check my answer - https://mcmap.net/q/1961896/-krusader-is-it-possible-to-connect-to-remote-server-with-identity-file Probably you have Krusader version with the bug.Cobaltous
I didn't keep the version I had in May ;-)Prelacy
R
1

There's no need to refer to your ~/.ssh/config file within krusader. It'll follow instructions made in this file automatically. I realised jump hops that way. However I had to point to port 22 although target server was configured to another port.

Rundlet answered 29/11, 2023 at 9:2 Comment(0)
C
0

Yes, it is possible with public key, but seems not possible with simple connection by password.

Krusader with version 2.7.2 appears to have bug with connection by ssh with authorization by password. Error: Authentication failed. Nautilus file manager in the same conditions is working fine.

Authorization by public key can be used after adding public key with command ssh-copy-id to remote host. No need to make changes in /etc/ssh/config file. Default configuration is working. Just test connection with ssh <address> -p <port> command before connecting by Krusader.

Connection by using either 22 or 8022 port is working fine.

Checked on Ubuntu 20.04.

Cobaltous answered 29/8 at 8:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.