veeso / termscp

🖥 A feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/S3/SMB
https://termscp.veeso.dev
MIT License
1.49k stars 45 forks source link

[BUG] - Could not parse configuration file: unknown field #173

Closed paxsali closed 1 year ago

paxsali commented 1 year ago

Hi all,

I get the error message when trying SFTP or SCP:

IO error (Could not parse configuration file: unknown field: IdentitiesOnly=Yes)

I find it strange because I don't understand why termscp would even attempt to parse my ~/.ssh/config.

This should be left to the environment to (somehow) establish the connection to the remote hosts.

Any idea why this is even necessary?

veeso commented 1 year ago

Hi,

enter configuration with CTRL+C from main menu and remove ssh config path from it to make termscp not using the ssh configuration.

paxsali commented 1 year ago

I copied my ~/.ssh/config to ~/.ssh/termscp.config, then removed all IdentitiesOnly=Yes from the termscp version. Now it works.

I still think it's a bug that this is even necessary.

Termscp shouldn't parse ssh config, IMHO.

veeso commented 1 year ago

I'll keep the configuration parser, but I will make it not strict if the field is unknown