| Category: Help for New Users, Linux, Remote Working | |||
|---|---|---|---|
SubjectSSH | |||
ContentSSH is a simple, secure way of connecting to the shell (or terminal) of a remote Linux system. Please note: All of the desktop/daq clients have names of the form <hostname>.atm.ox.ac.uk to access interactive serversFor PuTTY users: we would prefer you use the ssh client built into windows, but if you'd prefer you're welcome to follow the PuTTY help page. SetupSSH is simple to use but it can be made easier with some settings. To start type Host * Host KeysWhen you first connect to a system it will ask you to accept the host key for that system. For the bastion service this is "SHA256:l3/khU/E+6BbJstls9883ldQFlh4u1416QDzTHlKhmg" KeysSSH Keys are extremely long and complex passwords that allow us to connect without repeatedly typing our password. If you use this method you are responsible for keeping your key secure, this means it must be password protected, not doing so is a breach of university policy. To create a new key type: We recommend using a custom filename so that you can limit exposure if they key is compromised and rotate the keys when required, while keeping the old keys. user@cplxts12:~$ pushd ~ ; ssh-keygen -t ed25519 -f .ssh/id_2025_oxphy ; popd Once this is done you can update your `~/.ssh/authorized_keys` file in your Linux home area to include the public half of the key, this will sync to the bastion server. You can do this again for any machine you want to connect to so that neither asks for a password, this will not work on machines that have networked home directories, as you need to authenticate with a password before the home area is available.
On Windows, upload the (e.g.) id_2025_oxphy.pub file (only) with pushd ~ ; scp .ssh/id_2025_oxphy.pub cplxts12.nat.physics.ox.ac.uk:.ssh/ ; popd in PowershellIf you do not have access to a Linux system which mounts your home directory you can do this via
cplxts12.nat.physics.ox.ac.uk which is available to all users via RDP or SSH.If you use the physics Gitlab you should also upload this key to the user settings page, this will allow you to access git repositories without typing your password. It's recommended to set the expiry here to 1 year as this will give you a reminder to rotate the key.
Copying filesThe below commands/actions all assume your configuration roughly matches the one above, if it doesn't work please try to update your configuration and then contact IT Support if it still doesn't work. From the CLISCP and Rsync are both used for uploading files, as a rule scp is for simpler tasks involving a single file and rsync can do much more complicated actions.
To a specific machinescp ./local_file remote.nat.physics.ox.ac.uk:/tmp/ # Upload file into the tmp directory To a group / website / home areascp ./local_file winfe.physics.ox.ac.uk:/dfs/Groups/CondensedMatter/GROUP_NAME # Upload file into a group share From the GUIThe Linux file manager natively understands sftp, so you can simply pass it the path to a file and it should handle it invisibly, for example my Windows home area is accessible from my Linux desktop by typing the path On Windows, you can either access the DFS tree directly (recommended) or configure WinSCP. If you are transferring a file directly to a machine WinSCP is the only option. TroubleshootingWARNING: Connection is not using post-quantum kexThis is a client side warning given when a server does not support either `sntrup761x25519-sha512@openssh.com` or `mlkem768x25519-sha256`, these exchange algorithms have been hardened against possible future quantum computing based attacks. Where possible these are being enabled on all systems, but some windows users may need to copy the configuration from the Corrupted MAC on Input section into their configuration file. General AdviceTry running "ssh -v ..." where you would have run "ssh ..." and look at the end of the output for clues. If you don't get anywhere with that, send the whole of the log with a description of what you expect and what you actually see to itsupport@physics.ox.ac.uk. Please include the network you're on (so, how you're connected to the internet, e.g. Physics_S, my home ISP, etc), the operating systems of the computers you're connecting from and to, and what you're trying to do. If your config does not specify an ssh key to use, ssh will automatically try to use them all, this will fail after three attempts, please either specify which key to use or tell it not to use them. Corrupted MAC on inputUsing OpenSSH in Windows and see the error "Corrupted MAC on input", in the file
| |||
Documents | |||
| File | Heading | Date | |
| Drupal page URL | 06-12-2024 10:32 | ||
| Writer: Matthew Clifford-Smith Created on 16-11-2011 01:11 Last update on 23-01-2026 13:36 | 1820 views This item is part of the Physics IT knowledgebase | ||