Opened 8 months ago

Closed 8 months ago

#2869 closed help (fixed)

logging into jasmin-cylc

Reported by: NoelClancy Owned by: pmcguire
Component: JULES Keywords:
Cc: Platform:
UM Version:

Description

When transfering my account from jasmin-sci2 to jasmin-cylc, do I need to re-do steps 1-3 of the tutorial?

I already have a MOSRS account, and now I've completed step 4 of the tutorial, but cannot log-in to jasmin-cylc?

Change History (14)

comment:1 Changed 8 months ago by pmcguire

Dear Noel
You should not need to redo the steps 1-3 of the Rose/Cylc for JULES on JASMIN tutorial at:
https://research.reading.ac.uk/landsurfaceprocesses/software-examples/tutorial-rose-cylc-jules-on-jasmin/
Just step 4.

I just edited, clarified, and updated the page referred to in step 4:
https://code.metoffice.gov.uk/trac/jules/wiki/RoseJULESonJASMIN
You should redo the steps 3-5 in this TRAC Wiki (steps 1-2 and step 6 of this TRAC Wiki should be skipped).

I looked at your .bashrc and .bash_profile files on JASMIN. These files were different than I expected they should be. You might also need to check your .ssh/config files on your laptop and desktop, and make sure they are correct. Step 4 in the tutorial at the University of Reading LSP group website should now work better (with the revised steps 3-5 in the TRAC Wiki).

Do these revised instructions work now for you?
Patrick

comment:2 Changed 8 months ago by NoelClancy

Patrick,

Do I include the following?

#!sh

Last edited 8 months ago by pmcguire (previous) (diff)

comment:3 Changed 8 months ago by pmcguire

Hi Noel
No you don't include the #!sh string. I don't see that anywhere in the instructions on ​https://code.metoffice.gov.uk/trac/jules/wiki/RoseJULESonJASMIN . If for some reason you see it, it is some kind of typo. I did type those #!sh strings a few times on the web page to colorize the bash instructions for the web page, but they should be hidden from view.
Patrick

comment:4 Changed 8 months ago by pmcguire

Hi Noel
I looked at your .bashrc and .bash_profile files on JASMIN. They appear to be correct, but I haven't checked every character for typos. I do think they are right. Good job! You followed the new instructions well. Did you also change your .ssh\config file on your desktop and on your laptop? Does it work now? Can you ssh -AX jasmin-cylc.ceda.ac.uk directly from your laptop and desktop (without logging into jasmin-login1 first)?

In the future, you might consider making archival copies of your .bashrc and .bash_profile files with something like: cp -p .bashrc .bashrc.old1 and cp -p .bash_profile .bash_profile.old1, or something like that, prior to making changes to the files. That way, you can compare old versions of the file to the current version, to see the changes you have made.
Patrick

comment:5 Changed 8 months ago by NoelClancy

How do I check my .ssh\config file on your desktop ?

comment:6 Changed 8 months ago by pmcguire

Hi Noel
In order to change your .ssh/config file on your desktop computer or on your laptop computer, you can log out of JASMIN, and then vi ~/.ssh/config (in linux or on a Mac), and then make the changes described on step 3 of https://code.metoffice.gov.uk/trac/jules/wiki/RoseJULESonJASMIN .

On a PC with Windows with Mobaxterm, I would expect that you have linux or UNIX inside of your Mobaxterm, and the same instructions apply. Without Mobaxterm, you would need to find out where your ssh configuration files are on your PC, and modify accordingly.

Patrick

Last edited 8 months ago by pmcguire (previous) (diff)

comment:7 Changed 8 months ago by NoelClancy

I think it's finally working on my desktop,
logged into jasmin-cylc.ac.uk now

What is the difference between the two below?

exec ssh-agent $SHELL

and

exec ssh-agent bash

Last edited 8 months ago by pmcguire (previous) (diff)

comment:8 Changed 8 months ago by pmcguire

Dear Noel:
Excellent! I'm glad it's working!
Can you say what you needed to do extra in order to get it working?

To begin to answer your question, if you type:
echo $SHELL
at the command-line on your desktop (without being logged into jasmin-cylc, what does it say?
Patrick

comment:9 Changed 8 months ago by pmcguire

  • Status changed from new to accepted

comment:10 Changed 8 months ago by NoelClancy

[ue023700.SWPC276] ➤ echo $SHELL
/bin/bash.exe

comment:11 Changed 8 months ago by pmcguire

Dear Noel
Thank you for answering my second question. Can you also answer my first question? It is very helpful for us to understand what difficulties there are in implementing instructions. We can update our procedures and documentation, etc.

For your question about the difference between exec ssh-agent $SHELL and exec ssh-agent bash:
if you get /bin/bash.exe when you type echo $SHELL, then this means that the SHELL environment variable has the value of $SHELL=/bin/bash.exe. Therefore, the command exec ssh-agent $SHELL is actually the same as exec ssh-agent /bin/bash.exe. What do you get when you type which bash at the command-line of your desktop (MSWindows Mobaxterm) program (without being logged in to jasmin-cylc)?
Patrick

comment:12 Changed 8 months ago by pmcguire

Dear Noel:

Did you figure out answers to the two questions in the previous comment to this ticket?

Patrick

comment:13 Changed 8 months ago by pmcguire

Hi Noel:
I will close this ticket now, since I haven't heard back from you.
Patrick

comment:14 Changed 8 months ago by pmcguire

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