This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Login and data transfer ====== * Article written by Irene Reichl (VSC Team) <html><br></html>(last update 2020-09-22 by ir). ====== Project and User Account ====== {{.:folie_01_1_connect.png?0x600}} ---- ====== Project and User Account ====== {{.:folie_01_3_connect.png?0x600}} ---- ====== Connecting to VSC ====== {{.:folie_04_ssh_l31.png?0x600}} ---- ====== Connecting to VSC ====== {{.:folie_05_ssh_l31.png?0x600}} ---- ====== Connecting to VSC ====== ===== Terminals: ===== linux: xterm, mac: terminal ## alternative terminal connection <html><font color=#cc3300></html> ''%%PuTTY%%'' <html></font></html> {{.:putty.png?0x670}} ---- ====== Connecting to VSC ====== (DEMO) ===== VSC-3 ===== <code bash> [...]$ ssh <me>@vsc3.vsc.ac.at # dedicated server : [...]$ ssh <me>@l31.vsc.ac.at .. [...]$ ssh <me>@l35.vsc.ac.at </code> ===== VSC-4 ===== <code bash> [...]$ ssh <me>@vsc4.vsc.ac.at # dedicated server : [...]$ ssh <me>@l40.vsc.ac.at .. [...]$ ssh <me>@l49.vsc.ac.at </code> ---- ====== .bashrc ====== <code bash> export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8 </code> ---- ====== again and again ====== {{.:folie_06_oida.png?0x600}} ---- ====== again and again ====== {{.:folie_07_oida.png?0x600}} ---- ====== ssh-keys ====== {{.:folie_08_ssh_keys.png?0x600}} ---- ====== ssh-keys ====== {{.:sshkeys_v03.png?0x600|how to set up ssh-keys on client and login node}} [[https://wiki.vsc.ac.at/doku.php?id=doku:vpn_ssh_access|WIKI-link: ssh-keys]] ---- ====== ssh-keys — tunneling ====== {{.:folie_09_ssh_keys.png?0x600}} ---- ====== ssh-keys — tunneling ====== {{.:sshkeys_3servers_v03.png?0x600|how to set up ssh-keys on client and login node}} ---- DEMO: <code bash> [...]$ eval `ssh-agent` # start ssh agent [...]$ echo $SSH_AGENT_SOCK # check if it is running [...]$ chmod 700 ~./ssh # change rights of .ssh-directioy [...]$ ssh-keygen -t rsa # generate key on local machine </code> will be asked to create a pass phrase. that passphrase must be as secure as your password. IT IS POSSIBLE AT THAT POINT TO GIVE NO PASSWORD, BUT NEVER EVER GENERATE A KEY WHICH IS NOT PROTECTED !!! This may be a hazard for our systemm <code bash> [...]$ ssh-copy-id <me>@vsc4.vsc.ac.at # copy key to remote machine </code> will be asked for password & OTP on VSC-4 more about the [[https://www.ssh.com/ssh/agent|SSH agent]] ---- ====== Backup Policy ====== {{.:folie_10_backup.png?0x600}} for details see Markus Hickel/Storage ---- ====== Sync and Copy ====== {{.:folie_11_scp_rsyn.png?0x600}} ---- ====== Sync and Copy ====== <code bash> scp <source> <destination> scp <me>@vsc3.vsc.ac.at:~/<myfile.c> . scp myfile.c <me>@vsc4.vsc.ac.at:~/ </code> <code bash> rsync [OPTIONs] <source> <destination> maybe useful: -av, --exclude=/daten/temp/... </code> in order to setup on the remote machine, follow: [[https://wiki.vsc.ac.at/doku.php?id=doku:backup&#continous_backup_of_user_data_to_remote_machines|WIKI-link:rsync on remote machines]] ---- ====== Copy — alternative via FileZilla ====== {{.:filezilla_10.png?0x600|FileZilla}} ---- ====== Copy — alternative via winscp ====== {{.:winscp.png?0x600|winscp}} ---- pandoc/introduction-to-vsc/02_connecting_to_vsc/connecting_to_vsc-20200925.txt Last modified: 2020/10/20 09:13by pandoc