JASMIN Help Site logo JASMIN Help Site logo
  • Docs 
  • Guides 
  • Training 
  • Discussions   

  •   Search this site  

Can't find what you're looking for?

Try our Google custom search, across all JASMIN sites

Docs
  • getting started
    • get started with jasmin
    • generate ssh key pair
    • get jasmin portal account
    • get login account
    • beginners training workshop
    • how to contact us about jasmin issues
    • jasmin status
    • jasmin training accounts
    • tips for new users
    • how to login
    • multiple account types
    • present ssh key
    • reconfirm email address
    • reset jasmin account password
    • ssh auth
    • storage
    • understanding new jasmin storage
    • update a jasmin account
  • interactive computing
    • interactive computing overview
    • check network details
    • login servers
    • login problems
    • graphical linux desktop access using nx
    • sci servers
    • tenancy sci analysis vms
    • transfer servers
    • jasmin notebooks service
    • jasmin notebooks service with gpus
    • creating a virtual environment in the notebooks service
    • project specific servers
    • dask gateway
    • access from vscode
  • batch computing
    • lotus overview
    • slurm scheduler overview
    • slurm queues
    • lotus cluster specification
    • how to monitor slurm jobs
    • how to submit a job
    • how to submit an mpi parallel job
    • example job 2 calc md5s
    • orchid gpu cluster
    • slurm status
    • slurm quick reference
  • software on jasmin
    • software overview
    • quickstart software envs
    • python virtual environments
    • additional software
    • community software esmvaltool
    • community software checksit
    • compiling and linking
    • conda environments and python virtual environments
    • conda removal
    • creating and using miniforge environments
    • idl
    • jasmin sci software environment
    • jasmin software faqs
    • jaspy envs
    • matplotlib
    • nag library
    • name dispersion model
    • geocat replaces ncl
    • postgres databases on request
    • running python on jasmin
    • running r on jasmin
    • rocky9 migration 2024
    • share software envs
  • data transfer
    • data transfer overview
    • data transfer tools
    • globus transfers with jasmin
    • bbcp
    • ftp and lftp
    • globus command line interface
    • globus connect personal
    • gridftp ssh auth
    • rclone
    • rsync scp sftp
    • scheduling automating transfers
    • transfers from archer2
  • short term project storage
    • apply for access to a gws
    • elastic tape command line interface hints
    • faqs storage
    • gws etiquette
    • gws scanner ui
    • gws scanner
    • gws alert system
    • install xfc client
    • xfc
    • introduction to group workspaces
    • jdma
    • managing a gws
    • secondary copy using elastic tape
    • share gws data on jasmin
    • share gws data via http
    • using the jasmin object store
    • configuring cors for object storage
  • long term archive storage
    • ceda archive
  • mass
    • external access to mass faq
    • how to apply for mass access
    • moose the mass client user guide
    • setting up your jasmin account for access to mass
  • for cloud tenants
    • introduction to the jasmin cloud
    • jasmin cloud portal
    • cluster as a service
    • cluster as a service kubernetes
    • cluster as a service identity manager
    • cluster as a service slurm
    • cluster as a service pangeo
    • cluster as a service shared storage
    • adding and removing ssh keys from an external cloud vm
    • provisioning tenancy sci vm managed cloud
    • sysadmin guidance external cloud
    • best practice
  • workflow management
    • rose cylc on jasmin
    • using cron
  • uncategorized
    • mobaxterm
    • requesting resources
    • processing requests for resources
    • acknowledging jasmin
    • approving requests for access
    • working with many linux groups
    • jasmin conditions of use
  • getting started
    • get started with jasmin
    • generate ssh key pair
    • get jasmin portal account
    • get login account
    • beginners training workshop
    • how to contact us about jasmin issues
    • jasmin status
    • jasmin training accounts
    • tips for new users
    • how to login
    • multiple account types
    • present ssh key
    • reconfirm email address
    • reset jasmin account password
    • ssh auth
    • storage
    • understanding new jasmin storage
    • update a jasmin account
  • interactive computing
    • interactive computing overview
    • check network details
    • login servers
    • login problems
    • graphical linux desktop access using nx
    • sci servers
    • tenancy sci analysis vms
    • transfer servers
    • jasmin notebooks service
    • jasmin notebooks service with gpus
    • creating a virtual environment in the notebooks service
    • project specific servers
    • dask gateway
    • access from vscode
  • batch computing
    • lotus overview
    • slurm scheduler overview
    • slurm queues
    • lotus cluster specification
    • how to monitor slurm jobs
    • how to submit a job
    • how to submit an mpi parallel job
    • example job 2 calc md5s
    • orchid gpu cluster
    • slurm status
    • slurm quick reference
  • software on jasmin
    • software overview
    • quickstart software envs
    • python virtual environments
    • additional software
    • community software esmvaltool
    • community software checksit
    • compiling and linking
    • conda environments and python virtual environments
    • conda removal
    • creating and using miniforge environments
    • idl
    • jasmin sci software environment
    • jasmin software faqs
    • jaspy envs
    • matplotlib
    • nag library
    • name dispersion model
    • geocat replaces ncl
    • postgres databases on request
    • running python on jasmin
    • running r on jasmin
    • rocky9 migration 2024
    • share software envs
  • data transfer
    • data transfer overview
    • data transfer tools
    • globus transfers with jasmin
    • bbcp
    • ftp and lftp
    • globus command line interface
    • globus connect personal
    • gridftp ssh auth
    • rclone
    • rsync scp sftp
    • scheduling automating transfers
    • transfers from archer2
  • short term project storage
    • apply for access to a gws
    • elastic tape command line interface hints
    • faqs storage
    • gws etiquette
    • gws scanner ui
    • gws scanner
    • gws alert system
    • install xfc client
    • xfc
    • introduction to group workspaces
    • jdma
    • managing a gws
    • secondary copy using elastic tape
    • share gws data on jasmin
    • share gws data via http
    • using the jasmin object store
    • configuring cors for object storage
  • long term archive storage
    • ceda archive
  • mass
    • external access to mass faq
    • how to apply for mass access
    • moose the mass client user guide
    • setting up your jasmin account for access to mass
  • for cloud tenants
    • introduction to the jasmin cloud
    • jasmin cloud portal
    • cluster as a service
    • cluster as a service kubernetes
    • cluster as a service identity manager
    • cluster as a service slurm
    • cluster as a service pangeo
    • cluster as a service shared storage
    • adding and removing ssh keys from an external cloud vm
    • provisioning tenancy sci vm managed cloud
    • sysadmin guidance external cloud
    • best practice
  • workflow management
    • rose cylc on jasmin
    • using cron
  • uncategorized
    • mobaxterm
    • requesting resources
    • processing requests for resources
    • acknowledging jasmin
    • approving requests for access
    • working with many linux groups
    • jasmin conditions of use
  1.   Interactive computing
  1. Home
  2. Docs
  3. Interactive computing
  4. Login problems

Login problems

 

Ssh   Password   Connection  
Ssh   Password   Connection  
Share via
JASMIN Help Site
Link copied to clipboard

Login problems?

On this page
Unable to login to login server   Can login to login server but can’t login to a subsequent host   ssh-add command gives error: “Could not open a connection to your authentication agent.”   Errors when connecting with Mobaxterm  

Having problems connecting to a host on JASMIN? Details of how to login to JASMIN can be found here, but this article may help to resolve login problems. It provides information for the following issues:

  • Unable to login to a login server
  • Can login to login server but can’t login to a subsequent server
  • ssh-add command gives error: “Could not open a connection to your authentication agent.”
  • Errors when trying to connect with MobaXterm

Unable to login to login server  

If you are unable to login to a login server e.g. login-01.jasmin.ac.uk then look carefully at any error messages displayed as this can help diagnose what is wrong:

1) “Connection reset by peer”

This suggests a problem with the configuration of your machine or local network. We no longer restrict access to JASMIN by network domain, and no longer require registration of non-*.ac.uk domains, so you should be able to connect from anywhere. If your local admin team is not able to resolve the issue, please contact JASMIN support.

2) “Permission denied”

Here, the most likely cause is that the SSH key which your client is presenting does not match the one in your JASMIN account. This can be for a number of reasons:

  • Your SSH client is old and needs updating
    • You can check this with ssh -V and comparing to the versions mentioned here.
    • You will need to update your client before you can connect to JASMIN securely. Ask your local admin team for help: this is not something that we can “fix” at the JASMIN end.
  • You have omitted to specify the username in your SSH connection
    • In this case, you will be attempting to connect with the username you have on your local machine, which may not be the same.
  • You have only recently uploaded your SSH key (it can take 20 to 60 minutes before the key propagates to all the places it needs to on JASMIN).
    • Try waiting a few minutes before trying again.
  • You don’t have your key loaded in your local authentication agent (e.g. ssh-agent).
    • Check that you are following the method suitable for your operating system
      • The article “ How to login” has instructions for linux, mac and windows.
    • Note that connections using NoMachine NX don’t require an authentication agent: this can be a good alternative if you’re having problems.
  • You have not yet been granted jasmin-login access or your access has expired.
    • To check, go to My services  on the JASMIN accounts portal and check that “Login services: jasmin-login” is listed. If not then you either need to apply for jasmin-login access  , or if you have already done this recently you may simply need to wait for it to be approved. Note that if you have applied for access to a group workspace you still need jasmin-login access in order to connect to jasmin machines.

3) “The authenticity of host ’nnnn ( )’ can’t be established.” or “key for host nnnn has changed”

Your local computer stores a list of all the other SSH hosts which it has successfully connected to in the past. If you use an intermediate host like a login server to make onward connections to a sci machine, the login host will maintain another such list. In both cases there should be a file~/.ssh/known_hosts (so one in your local home directory on your own machine, and one in your JASMIIN home directory)

When the SSH client first contacts the host for the SSH connection, it checks to see if the remote host is one that it recognises. If this check fails, you may get a message like the following:

Message 1:

The authenticity of host 'nnnn (<ip address>)' can't be established.
ECDSA key fingerprint is SHA256:8QY9iBcOQFyEYkpOtBUU8WQGeADb0DyMff01BRuvYls.
ECDSA key fingerprint is MD5:f9:19:c4:5f:2b:fa:ed:aa:34:86:c9:23:dd:1c:44:30.
Are you sure you want to continue connecting (yes/no)?

Message 2:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The ECDSA host key for nnnn has changed,
and the key for the corresponding IP address <IP address>
has a different value. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
Offending key for IP in /home/users/username/.ssh/known_hosts:62
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:Evr7U40sEGSLVypfafLYtbF2oYvGDuBxTyrALdx11pk.
Please contact your system administrator.
Add correct host key in /home/users/username/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/users/username/.ssh/known_hosts:115
ECDSA host key for nnnn has changed and you have requested strict checking.
Host key verification failed.

This can happen when:

  • machines are re-installed (as part of maintenance by the JASMIN team)
  • when you modify your ~/.ssh/known_hosts file
  • when you access a “known” host but via a different name (e.g. sci-vm-01 vs sci-vm-01.jasmin.ac.uk)

Message 1 means that you don’t have an entry for that host in your ~/.ssh/known_hosts file. In most cases, you can safely reply “yes” and the SSH connection should proceed as normal from then on.

If you get message 2, and are confident that the change is for a legitimate reason, the solution is to modify your ~/.ssh/known_hosts file, removing the entries for that host (there may be more than one, as above for sci1 vs sci-vm-01.jasmin.ac.uk) by deleting those lines. Next time you try and connect, you will get message 1, but can reply “yes” and the SSH connection should proceed as normal.

Note: If you’re using a graphical SFTP or SCP client for data transfers, the error messages above may be hidden and so it can be harder to establish the reason for failure. Using a terminal session (in MobaXterm on Windows, or Mac/Linux terminal) to the problem host will likely reveal the messages and enable you to follow the steps above to solve the problem.

Can login to login server but can’t login to a subsequent host  

Here, there are 3 main possibilities:

1) You have not set up agent forwarding correctly on your local machine.

****This allows your ssh key to be used for logging in from the login server to other machines. To check, run the following command on the login server:

echo "$SSH_AUTH_SOCK"

This should display something that looks similar to (but not identical to)

/tmp/ssh-RNjiHr2844/agent.2844

If nothing is displayed then it indicates that agent forwarding is not working. Please read how to login and make sure you are running ssh-agent (or similar), have loaded your private key and are using the -A option on your ssh command for the connection to the login server. NX users should make sure that the “agent forwarding” option is ticked when setting up a connection profile.

2) Some hosts within JASMIN are restricted to particular (groups of) users.

The sci servers and xfer servers should be available to all with jasmin-login access (see above). Where you need special access to a particular service, this will be indicated in the relevant documentation on this site. Normally you would apply for access for the relevant access role via the JASMIN accounts portal  .

3) There is a problem with the host you are trying to connect to.

Occasionally there may be problems with the host (machine) which you are trying to connect to. The sci servers (particularly physical/high-memory hosts sci-ph-[12]) experience very high usage loads and occasionally run out of resources. This may prevent you from logging in. In some circumstances ask you for a password: this is normally a sign that something is wrong with the machine, since passwords are not used for SSH logins on JASMIN, so there is no point in trying to enter your account password or SSH passphrase at this stage. In this case please contact the JASMIN helpdesk.

If you still have problems then please contact us using the help beacon below. It would be helpful if you can include as much of the following information as possible:

  • The IP address and full hostname of the machine you are trying to connect from.
  • The date and time that you tried connecting (to the nearest minute if possible). This will help us to identify any relevant messages in any log files.
  • The exact command you were using
  • Add -vvv to your ssh command and send us the the output (please include the command itself)
  • List the SSH keys directory on your local machine. On a linux machine this can be done with the command: ls -l ~/.ssh

ssh-add command gives error: “Could not open a connection to your authentication agent.”  

On some terminal sessions the usual instructions for starting the ssh-agent session and adding the key may give the following error:

ssh-add ~/.ssh/id_ecdsa_jasmin
Could not open a connection to your authentication agent.

If you get this message, please try either:

modifying the method you use to start the ssh-agent, to:

eval $(ssh-agent -s)

(and then trying to load the key again)

or see below (if using MobaXterm) which now has a better way of loading the SSH key.

Errors when connecting with Mobaxterm  

Please follow the instructions for MobaXterm (which include a video to show how to load your key into its own ssh-agent, MobAgent).

These instructions have changed with more recent versions of MobaXterm, and replace the need to use the ssh-add command, so please make sure that both the version you are using, and your method, are up to date!

Please note that even if your initial connection to (for example) your university host does not require your JASMIN SSH key, you should still load the key AND enable agent forwarding, for your initial connection to that host, so that the key can be used for the subsequent connection to the JASMIN login host. This actually applies to any connection method, not just MobaXterm.

Last updated on 2025-02-06 as part of:  gridftp, hpxfer, nx, sci updates (7084b7cf0)
On this page:
Unable to login to login server   Can login to login server but can’t login to a subsequent host   ssh-add command gives error: “Could not open a connection to your authentication agent.”   Errors when connecting with Mobaxterm  
Follow us

Social media & development

   

Useful links

  • CEDA Archive 
  • CEDA Catalogue 
  • JASMIN 
  • JASMIN Accounts Portal 
  • JASMIN Projects Portal 
  • JASMIN Cloud Portal 
  • JASMIN Notebooks Service 
  • JASMIN Community Discussions 

Contact us

  • Helpdesk
UKRI/STFC logo
UKRI/NERC logo
NCAS logo
NCEO logo
Accessibility | Terms and Conditions | Privacy and Cookies
Copyright © 2025 Science and Technology Facilities Council.
Hinode theme for Hugo licensed under Creative Commons (CC BY-NC-SA 4.0).
JASMIN Help Site
Code copied to clipboard