Opened 3 years ago

Closed 3 years ago

#2209 closed help (fixed)

ssh to JASMIN

Reported by: charlie Owned by: um_support
Component: PUMA Keywords:
Cc: Platform: PUMA
UM Version: <select version>

Description

Hi,

I am ssh-ing to the sci node on JASMIN from PUMA, but can't seem to open any sort of display:

charlie@puma:/home/charlie> ssh -Y jasmin-sci2.ceda.ac.uk
[cwilliams2011@jasmin-sci2 ~]$ xterm
xterm Xt error: Can't open display: localhost:27.0
[cwilliams2011@jasmin-sci2 ~]$ nedit
nedit: the current locale is utf8 (en_US.UTF-8)
nedit: changed locale to non-utf8 (en_US)
NEdit: Can't open display

This always used to work, no problems.

The only difference is that before, I was using NoMachine? to log into banshee.reading.ac.uk, then onto PUMA and then on to JASMIN. Since the power outage the other day, apparently I can no longer do this. Now, I'm instead using NoMachine? to log into nx.reading.ac.uk, then onto PUMA and then on to JASMIN. Is this the reason?

Please can you help?

Charlie

Change History (7)

comment:1 Changed 3 years ago by andy

Hi Charlie,

Are you using -X on your ssh command from nx.reading.ac.uk to puma? Once on puma you should be able to type xterm and get a xterm window up.

Andy

comment:2 Changed 3 years ago by charlie

Andy,

Thanks. I have also asked Eric about this as he was the one who helped set me up on nx, but he doesn't know the answer so I believe has just contacted you as well.

In short, yes I am (or rather the -Y flag, although I have tried it with both -X and -Y, and same problem). Using this, I can connect to PUMA no problem, and can open x-windows (e.g. xterm, nedit) no problem. But if I then connect to JASMIN, again using the -Y flag, I can't open anything.

Charlie

comment:3 Changed 3 years ago by andy

Hi Charlie,

If you have your jasmin keys on the local system you can go direct from nx.reading.ac.uk to jasmin-login1 and then onto jasmin-sci2 as below (change ajh for your user name)

ssh -X ajh@…
ssh -X ajh@…

You can also go via puma as well but don't forget the -X when going from login1 to sci2.

Try opening an xterm on login1. Does that work? If not then I suspect you have filled up your home directory quota on jasmin@ceda and need to move / remove some files there. I don't know how to check whether the user quota has been exceeded on jasmin@ceda.

Andy

comment:4 Changed 3 years ago by charlie

Andy,

I can't ssh directly from nx into either JASMIN (login or science node) or PUMA, it just hangs. But even if I could, my ssh keys are all on PUMA, not my home directory. So the only way I can get it to PUMA is to login to jasmin@reading, then PUMA, then JASMIN. I am able to log straight into the sci node on JASMIN, as this is how Ros H setup my .ssh/config file, but then can't open any x-windows. See below:

sws06cjw@nxnode1:~/Desktop$ ssh -Y charlie@jasmin1
Password:
jasmin1$ ssh -Y puma
charlie@puma's password:
charlie@puma:/home/charlie> ssh -Y jasmin-sci2.ceda.ac.uk
[cwilliams2011@jasmin-sci2 ~]$ nedit
nedit: the current locale is utf8 (en_US.UTF-8)
nedit: changed locale to non-utf8 (en_US)
NEdit: Can't open display

if I try to login to the main node on JASMIN, I get:

charlie@puma:/home/charlie> ssh -Y jasmin-login1.ceda.ac.uk
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
charlie@puma:/home/charlie>

I have just checked my space on JASMIN, and it's fine:

[cwilliams2011@jasmin-sci2 ~]$ pan_quota

<GB> <soft> <hard> : <files> <soft> <hard> : <path to volume> <pan_identity(name)>
0.48 8.00 10.00 : 4104 unlimited unlimited : /home/users/cwilliams2011 uid:7050261(cwilliams2011)

Any other suggestions?

Charlie

comment:5 Changed 3 years ago by andy

Hi Charlie,

on nx.reading.ac.uk puma is puma.nerc.ac.uk as that is run by central IT and they use DNS tables not local host definitions. So from nx.reading.ac.uk you can ssh to puma.nerc.ac.uk and then onto jasmin-login1.

I've not had any great ideas what's not working here. Can you try the following from puma:
ssh jasmin-sci2.ceda.ac.uk
Then type xterm and see if that pops up.

If not then I'll have to have a chat with Ros and see how your set-up works.

Andy

comment:6 Changed 3 years ago by charlie

Andy,

Right, I am able to access PUMA directly from nx:

sws06cjw@nxnode1:~/Desktop$ ssh -Y charlie@puma.nerc.ac.uk

if I do this, I can open x-windows, no problem. I am then able to access the login node JASMIN:

charlie@puma:/home/charlie> ssh -Y cwilliams2011@jasmin-login1.ceda.ac.uk

if I do this, I can again open x-windows, no problem. I can then connect to the sci node:

[cwilliams2011@jasmin-login1 ~]$ ssh -Y jasmin-sci2.ceda.ac.uk

if I do this, I can again open x-windows, no problem.

However, if I access the sci node straight from PUMA (which, according to Ros, I should be able to do to make things easier), with or without my username included, i.e.:

charlie@puma:/home/charlie> ssh -Y cwilliams2011@jasmin-sci2.ceda.ac.uk
or
charlie@puma:/home/charlie> ssh -Y jasmin-sci2.ceda.ac.uk

Then I can't open a display:

[cwilliams2011@jasmin-sci2 ~]$ nedit
nedit: the current locale is utf8 (en_US.UTF-8)
nedit: changed locale to non-utf8 (en_US)
NEdit: Can't open display

This has most definitely changed since I started using nx, yesterday. Either way, it doesn't really matter, as I will just to go into it the long way.

Thanks for your help,

Charlie

comment:7 Changed 3 years ago by andy

  • Resolution set to fixed
  • Status changed from new to closed

Hi Charlie,

If you copy your jasmin ssh keys from your puma account to your department account then you'll be able to go to jasmin@ceda without going through puma. Why your previous set-up doesn't work on nx.reading.ac.uk is something of a mystery but at least you can login and get X-windows.

I'll close this thicket now.

Thanks
Andy

Note: See TracTickets for help on using tickets.