VNC works similar to SSH, but allows VNC clients from different operating systems to access the server/workstation. Remember to add your username to login.astro if different on the computers VNC Then concatinate this file to the end of the file authorized_keys:
#Vnc connect macos increase resolution password#
If this file exists or fails, you will have to fix this manually (type your password when asked to do so):
If you do not have any ~/.ssh/authorized_keys file you may simply ssh-copy the id file(s) by: You will then need to put the contents of the file id_ed25519.pub id_rsa.pubkey in the file ~/.ssh/authorized_keys file on the host machine (in your homedir, $HOME/.ssh) if you're connecting from a non-UiO machine.ĭepartment of Geoscience has written an extensive page about ssh tips and tricks Laptop$ ssh-add -l read eval `ssh-agent` ssh-add ssh-add -l Connecting to another machine This passphrase can be remembered by an ssh-agent and added with ssh-add, ie: ssh without password should now be working betwieen university computers. It is strongly recommended that you provide one. You will then be asked to provide a passphrase. The default should be on your home directory, id_ed25519. Usually you will recieve a response asking you which file the key should be saved in. You can ssh between computers without typing your password by using encrypted keys (you can read more on this at Wikipedia). SSH keys - ssh without typing your password This will tunnel the connection through to. Replace and with your computer name and username at UiO, respectively. Give ~/.ssh/config correct permission by running:
(create the file if it doesn't exist) on the computer you are connecting from: Ssh -CY -J -L 5901:localhost:5900 then start the VNC session with command+K in Finder, and connect to it by:Ģ) In order to ease the access you can use the following lines in ~/.ssh/config
#Vnc connect macos increase resolution how to#
How to get vnc from my laptop to my stationary Mac to work after ssh to the workstations were closed (thanks to Terje F.): Example connecting a Mac laptop to a Mac workstation via VNC Ssh -CY -J may omit the username if it you've got similar username on the remote machine. Ssh -J you combine these two with and an additional "C" for compression (and speed) you get the more useful There are at least two ways of doing this:ġ) Login to a workstation using a jumphost To be able to SSH into your computer at ITA, you need to go through. The recommended solution is to use VNC (see the VNC section further below)īy default, computers at UiO have restricted access from outside. However, running GUI based applications using X11 forwarding is not recommended for performance reasons. This switch can be turned on permanently by modifying the. Ssh -Y -Y switch is useful if you want to be able to open programs from the remote computer in separate windows, one may combine it with the use of compression, "-CY". «ssh is a program for logging into a remote machine and for executing commands on a remote machine» Useful programs, terminal multiplexers for working at the command line Setting correct screen resolution on a Mac workstation Setting correct screen resolution on a linux workstation Starting the VNC-server on a Mac workstationĬonnect to a linux workstation from a linux laptopĬonnect to a linux workstation from a Mac laptopĬonnecting to a Mac workstation from a Mac laptop Starting the VNC-server on a linux workstation