Central SSH Access
Log into the SSH gateway server ssh-gateway.physics.ox.ac.uk using your central authentication (without the preceding "PHYSICS\".)
Warning: The ssh-gateway is only meant to be used as a gateway. There are no automatic backups in place so any files in your home directory there are to be treated as scratch. It is the users' responsibility to make sure files such as keys are backed up.
Normal SSH usage for Linux/OS X
This example shows how to connect to an example machine called computer_in_.physics.ox.ac.uk, using an ssh tunnel from a remote unix client to ssh-gateway.physics.ox.ac.uk. Replace computer_in_.physics.ox.ac.uk with the name of the machine you are trying to connect to.
First of all you need to create an ssh tunnel between your unix machine and ssh-gateway.physics.ox.ac.uk.
Use the following command:
ssh -X your_username [at] ssh-gateway [dot] physics [dot] ox [dot] ac [dot] uk
("your_username" is your physics user name, the same you normally use to access your physics emails) You will be prompted for your physics password. Once the connection is open, enter this command in the same terminal:
ssh -X lusername [at] computer_in_ [dot] physics [dot] ox [dot] ac [dot] uk
("lusername" is the local username for the machine you are
trying to access)
You will be prompted for your local machine username password and then you
will get your login shell.
Port forwarding using an ssh-gateway
This allows you tunnel an unused port on your local machine to a specific port on a machine in the Physics network.
From Linux and OS X
This example assumes you want to copy files via scp, but will work for other services by substituting the correct port on the remote machine.
Set up the tunnel to port 22 on the remote machine with:
ssh -fN -L 2222:remotemachine.physics.ox.ac.uk:22 \
PhysicsUser [at] ssh-gateway [dot] physics [dot] ox [dot] ac [dot] uk
This connects port 2222 on your local machine to port 22 on remotemachine. The ssh-gateway will request your Physics password, and the ssh tunnnel will remain open until you kill the ssh process.
Then point your local client to the port on your local machine. For example, to copy a directory via scp:
scp -r -P 2222 remoteuser@localhost:dirpath ./
To copy files via RSync over SSH:
Log into the SSH gateway server ssh-gateway.physics.ox.ac.uk using
your central authentication (without the preceding "PHYSICS\".)
Warning: The ssh-gateway is only meant to be used as a gateway. There are
no automatic backups in place so any files in your home directory there are to
be treated as scratch. It is the users' responsibility to make sure files
such as keys are backed up.
Normal SSH usage for Linux/OS X
This example shows how to connect to an example machine called computer_in_.physics.ox.ac.uk, using an ssh tunnel from a remote unix client to ssh-gateway.physics.ox.ac.uk. Replace computer_in_.physics.ox.ac.uk with the name of the machine you are trying to connect to.
First of all you need to create an ssh tunnel between your unix machine and ssh-gateway.physics.ox.ac.uk.
Use the following command:
ssh -X your_username [at] ssh-gateway [dot] physics [dot] ox [dot] ac [dot] uk
("your_username" is your physics user name, the same you normally use to access your physics emails) You will be prompted for your physics password. Once the connection is open, enter this command in the same terminal:
ssh -X lusername [at] computer_in_ [dot] physics [dot] ox [dot] ac [dot] uk
("lusername" is the local username for the machine you are trying to access)
You will be prompted for your local machine username password and then you will get your login shell.
Port forwarding using an ssh-gateway
This allows you tunnel an unused port on your local machine to a specific port on a machine in the Physics network.
From Linux and OS X
This example assumes you want to copy files via scp, but will work for other services by substituting the correct port on the remote machine.
Set up the tunnel to port 22 on the remote machine with:
ssh -fN -L 2222:remotemachine.physics.ox.ac.uk:22 \
PhysicsUser [at] ssh-gateway [dot] physics [dot] ox [dot] ac [dot] uk
This connects port 2222 on your local machine to port 22 on remotemachine. The ssh-gateway will request your Physics password, and the ssh tunnnel will remain open until you kill the ssh process.
Then point your local client to the port on your local machine. For example, to copy a directory via scp:
scp -r -P 2222 remoteuser@localhost:dirpath ./
To copy files via RSync over SSH:
rsync -avzR -e "ssh -p 2222" remoteuser@localhost:dirpath ./
rsync -avzR -e "ssh -p 2222" remoteuser@localhost:dirpath ./
Categories: Linux | Mac | Remote Access | SSH
