Opened 10 years ago

Closed 10 years ago

#317 closed help (fixed)

setting up ssh-agent on PUMA

Reported by: anmcr Owned by: jeff
Priority: high Component: PUMA
Keywords: FCM, ssh-agent on PUMA Cc:
Platform: UM Version: 7.1

Description

Hello,

I'm following the UM FCM Tutorial on 'Setting Up ssh-agent on PUMA'

I seem to do 1. properly. But when I do '.2 add the public key to the ~/.ssh/authorized_keys file on HECToR' I get the warning

'pseudo-terminal will not be allocated because stdin is not a terminal'

Ans when I try '3. Verify the authentication works' I don't get a prompt for my DSA key.

Could someone please help?

Thanks,

Andrew

Change History (7)

comment:1 Changed 10 years ago by jeff

  • Owner changed from um_support to jeff
  • Status changed from new to accepted

Hi Andrew

It works okay when I do it, can you copy and paste into the helpdesk exactly what you type and what output you get. Thanks.

Jeff.

comment:2 Changed 10 years ago by anmcr

Dear Jeff,

Thanks for looking into this. Below is exactly what I typed and the output. As there was no prompt for the DSA key when I ssh'd into HECToR, I assume that something is wrong.

Andrew

$ ssh-keygen -f ~/.ssh/id_dsa -C "anmcr@…"
Generating public/private rsa key pair.
/home/anmcr/.ssh/id_dsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/anmcr/.ssh/id_dsa.
Your public key has been saved in /home/anmcr/.ssh/id_dsa.pub.
The key fingerprint is:
ac:ef:00:14:1c:4f:08:46:5a:86:c1:a2:74:e6:3b:d6 anmcr@…
$ cat ~/.ssh/id_dsa.pub | ssh anmcr@…
Pseudo-terminal will not be allocated because stdin is not a terminal.
Password:
PathScale? PrgEnv? loaded
pathscale/3.0
PrgEnv?-pathscale/2.1.56HD
xt-mpt/3.1.0
-bash: line 1: ssh-rsa: command not found
$ ssh anmcr@…
Password:
Last login: Tue Sep 1 18:17:25 2009 from puma.nerc.ac.uk


login.hector.ac.uk - UK National Service on Cray XT5h (hybrid XT4 and X2) system


comment:3 Changed 10 years ago by jeff

Hi Andrew

Your output didn't come out very well on the web page but it was readable in the email

You typed

$ cat ~/.ssh/id_dsa.pub | ssh anmcr@login.hector.ac.uk

but according to the web page you need to type

puma$ cat ~/.ssh/id_dsa.pub | ssh <username>@login.hector.ac.uk 'mkdir -p .ssh ; cat - >> ~/.ssh/authorized_keys'

Try this and it should work.

Jeff.

comment:4 Changed 10 years ago by anmcr

Dear Jeff,

OK. Sorry about this. I printed out the help page, and the printed version cut out the part I missed out.

See below for what I now get. It isn't exactly what is written on the help page. Particularly I gave my puma and then hector password (not passphrase) for step 2. While although step 3. seemed to work, it did not ask for verification for 'anmcr@…'. So could you please have a quick check.

Thanks for your help,

Andrew

$ ssh-keygen -f ~/.ssh/id_dsa -C "anmcr@…"
Generating public/private rsa key pair.
/home/anmcr/.ssh/id_dsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/anmcr/.ssh/id_dsa.
Your public key has been saved in /home/anmcr/.ssh/id_dsa.pub.
The key fingerprint is:
de:f0:6d:20:9e:6a:c5:a0:97:82:b4:12:48:25:98:40 anmcr@…
$ cat ~/.ssh/id_dsa.pub | ssh anmcr@… 'mkdir -p .ssh ; cat - >> ~/.ssh/authorized_keys'
Password:
Password:
$ ssh anmcr@…
Enter passphrase for key '/home/anmcr/.ssh/id_dsa':
Last login: Tue Sep 1 18:20:36 2009 from puma.nerc.ac.uk


login.hector.ac.uk - UK National Service on Cray XT5h (hybrid XT4 and X2) system


comment:5 Changed 10 years ago by jeff

Hi Andrew

Yes it looks like it has worked. For step 2 I think you just need to give your hector password, not the passphrase as that hasn't been setup yet and not your puma password either. I think the web page may need changing slightly.

Jeff.

comment:6 Changed 10 years ago by anmcr

Thanks Jeff.

Please close this ticket.

Best wishes,

Andrew

comment:7 Changed 10 years ago by jeff

  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.