mscp icon indicating copy to clipboard operation
mscp copied to clipboard

Is private key forwarding supported or planned to be supported?

Open alexeedm opened this issue 3 months ago • 1 comments

Hey, thanks for this tool, it proved really helpful to me a couple of times!

However, now I'm trying to use it to copy files to a remote server that requires a proxy jump and key forwarding. I have an option ForwardAgent in my ssh config, and ssh and scp commands both work fine. Unfortunately, mscp doesn't and it complains ssh_config_parse_line: Unsupported option: ForwardAgent, line: 15 Is this expected behavior? Are there any plans to support ForwardAgent?

alexeedm avatar Oct 28 '25 19:10 alexeedm

mscp depends on libssh, an SSH implementation, and libssh does not support ForwardAgent in ssh_config https://gitlab.com/libssh/libssh-mirror/-/blob/master/src/config.c?ref_type=heads#L106.

Instead, mscp (and libssh) supports ProxyJump. Could you try to comment out ForwardAgent in the ssh_config and use -J option? for example, mscp -J your.login.node file-to-transfer remote-server:

upa avatar Nov 08 '25 10:11 upa