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.65k stars 48 forks source link

[BUG] - MacOS SSH key auth fails #238

Closed MadGhigno closed 4 months ago

MadGhigno commented 6 months ago

Description

Trying to access a server using ssh keys results in the following error: protocol error ([Session(-5)] Unable to exchange encryption keys)

Steps to reproduce

Configure a server with public/private ssh key authentication and place the configuration in the ~/.ssh/config

Ex:

Host server-test HostName [hostname or ip] User Port IdentityFile

Expected behavior

Selecting SCP and typing "server-test" in the [remote host] and hit enter. It is expected to connect to the remote server. I tried the same thing on a Linux machine and it works as expected.

Environment

Log

NA

Additional information

NA

github-actions[bot] commented 5 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 4 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.

shishkin commented 4 months ago

This is still an issue

artawan commented 4 months ago

I got the same issues on:

Apple M1 Pro 4-inch, 2021 macOS Sonoma 14.5

Error: authentication failed ([Session(-18)] Authentication failed (username/password))

I thought it was an error with the installation method. I did some installation method but the problem is still there. I'm trying to use ssh command in terminal it's working fine with the same username/password.

Installation method

CURL

curl --proto '=https' --tlsv1.2 -sSLf "https://git.io/JBhDb" | sh

Cargo install

cargo install termscp

Brew

brew install veeso/termscp/termscp

From Source

git clone git@github.com:veeso/termscp.git --single-branch -b main
cd termscp
cargo build --release