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.71k stars 49 forks source link

[Feature Request] - Parse the SSH config file #77

Closed 2b closed 2 years ago

2b commented 2 years ago

Description

Hello. As I see from the description, this project uses libssh as the SSH protocol implementation. It would be really nice if termscp could parse the SSH config file and apply SFTP/SCP session settings according to the parsed parameters.

For example, it would allow a public key authentication, control sockets support to speed up connections, a known_hosts file support for hosts' keys verification etc.

Changes

The following changes to the application are expected

Implementation

https://api.libssh.org/master/group__libssh__session.html

veeso commented 2 years ago

Hi,

thank you for reporting this. Yeah it makes perfectly sense, especially considering that the current ssh crate already provides the method to parse the configuration file.

Put in backlog for 0.8.0

See: https://docs.rs/ssh/0.1.4/ssh/struct.Session.html#method.parse_config

veeso commented 2 years ago

Implementation merged into 0.8.0.