Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AuthenticationException on test #387

Open
saswat0 opened this issue May 4, 2024 · 1 comment
Open

AuthenticationException on test #387

saswat0 opened this issue May 4, 2024 · 1 comment

Comments

@saswat0
Copy link

saswat0 commented May 4, 2024

Subject of the issue

I'm trying to setup tensorhive on a system and get the following error upon running tensorhive test (I've masked the hostname by a dummy name)

CRITICAL | 2024-05-03 23:53:08 | MainThread                     | MSG: [✘] hostname.univ.edu FAILED (exit code: None, exception: AuthenticationException) | FROM: tensorhive.core.managers.SSHConnectionManager

Your environment

List relevant info:

  • OS: Ubuntu 20.04, Python 3.6
  • TensorHive version (built from master)
  • Versions of installed dependencies
  • Essential hardware specs (GPU model)

Steps to reproduce

I have created a user named tensorhive in the node. I can SSH into it from my laptop and from the node itself without password (by copying the SSH public key). The node is accessible by [email protected]. However, when I run tensorhive test, I get this error.

My hosts_config.ini looks like this

[hostname.univ.edu]
user = user
port = 22
tensorhive init
tensorhive test

Expected behaviour

App should launch without errors

Actual behaviour

INFO     | 2024-05-04 00:11:26 | MainThread                     | MSG: [⚙] Testing SSH connections using key: ~/.config/TensorHive/ssh_key             | FROM: tensorhive.core.managers.SSHConnectionManager
CRITICAL | 2024-05-04 00:11:26 | MainThread                     | MSG: [✘] hostname.univ.edu FAILED (exit code: None, exception: AuthenticationException) | FROM: tensorhive.core.managers.SSHConnectionManager
INFO     | 2024-05-04 00:11:26 | MainThread                     | MSG: Summary: 1/1 failed to connect.                                                 | FROM: tensorhive.core.managers.SSHConnectionManager
INFO     | 2024-05-04 00:11:26 | MainThread                     | MSG: [⚙] Testing SSH connections using default system keys                           | FROM: tensorhive.core.managers.SSHConnectionManager
CRITICAL | 2024-05-04 00:11:26 | MainThread                     | MSG: [✘] hostname.univ.edu FAILED (exit code: None, exception: AuthenticationException) | FROM: tensorhive.core.managers.SSHConnectionManager
INFO     | 2024-05-04 00:11:26 | MainThread                     | MSG: Summary: 1/1 failed to connect.                                                 | FROM: tensorhive.core.managers.SSHConnectionManager
@SparklingAperioso
Copy link

SparklingAperioso commented Jul 1, 2024

Hi,
I had the same problem.
It seems that when TensorHive is using Paramiko 2.7.2 (https://github.com/paramiko/paramiko) to generate a RSA Key.
Unfortunately, it's generating a SHA-1 key which is deprecated by OpenSSH in version 8.8.

In order to have TensorHive connecting to my SSH GPU server, I had to add this options in my sshd_config
PubkeyAcceptedAlgorithms = +ssh-rsa.

Actually, because, I only wanted to accept SHA1 key from TensorHive only, I added at the end of my sshd_config

#Allow SHA1 from TensorHive
Match Address @IP_TensorHive_Server/32
     PubkeyAcceptedAlgorithms = +ssh-rsa  ```
 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants