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

SSH keys on new HAL DGX setup #15

Open
matthewfeickert opened this issue Apr 28, 2022 · 0 comments
Open

SSH keys on new HAL DGX setup #15

matthewfeickert opened this issue Apr 28, 2022 · 0 comments

Comments

@matthewfeickert
Copy link
Member

matthewfeickert commented Apr 28, 2022

Continuing the thread of thought from Issue #14, the login machine also makes it difficult to do ssh-key forwarding. While there is a default ssh-agent running on the login machine, there is no default agent running on HAL DGX itself now. This poses a problem as it makes ssh-key forwarding impossible even with a profile like

Host DGX HALDGX
    HostName hal-login3.ncsa.illinois.edu
    Compression yes
    PreferredAuthentications keyboard-interactive,password
    PubkeyAuthentication no
    ForwardAgent yes
    User feickert

and users should ideally not be trying to automate setting up a ssh-agent on login. So this will need to get figured out.


Example:

$ ssh DGX
[email protected]'s password: 
Duo two-factor login for feickert

Enter a passcode or select one of the following options:

 1. Duo Push to XXX-XXX-XXXX

Passcode or option (1-1): 1
Success. Logging you in...
Last login: Wed Apr 27 21:58:21 2022 from 216.169.6.123
 __          __  _                            _          _    _          _          _                 _       ____    _ 
 \ \        / / | |                          | |        | |  | |   /\   | |        | |               (_)     |___ \  | |
  \ \  /\  / /__| | ___ ___  _ __ ___   ___  | |_ ___   | |__| |  /  \  | |  ______| |     ___   __ _ _ _ __   __) | | |
   \ \/  \/ / _ \ |/ __/ _ \| '_ ` _ \ / _ \ | __/ _ \  |  __  | / /\ \ | | |______| |    / _ \ / _` | | '_ \ |__ <  | |
    \  /\  /  __/ | (_| (_) | | | | | |  __/ | || (_) | | |  | |/ ____ \| |____    | |___| (_) | (_| | | | | |___) | |_|
     \/  \/ \___|_|\___\___/|_| |_| |_|\___|  \__\___/  |_|  |_/_/    \_\______|   |______\___/ \__, |_|_| |_|____/  (_)
                                                                                                 __/ |                  
                                                                                                |___/                   



[feickert@hal-login3 ~]$ srun --partition=x86 --time=1:00:00 --nodes=1 --ntasks-per-node=32 --sockets-per-node=1 --cores-per-socket=16 --threads-per-core=2 --mem-per-cpu=4000 --wait=0 --export=ALL --gres=gpu:a100:1 --pty /bin/bash
(base) [feickert@hal-dgx ~]$ ssh-add -l
Error connecting to agent: No such file or directory
(base) [feickert@hal-dgx ~]$ eval $(ssh-agent)
Agent pid 59269
(base) [feickert@hal-dgx ~]$ ssh-add -l
The agent has no identities.
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

1 participant