You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RBVM_Ssh.md 1.6 KiB

4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. First of all, you will need to install an ssh server on your VM before
  2. you can ssh to it. You will probably need to do this with a [VNC
  3. Viewer](/RBVM_Vnc "wikilink"). When your in your VM, you can install
  4. OpenSSH with:
  5. `apt-get install openssh-server`
  6. Make sure your VM is powered on before proceeding. If you want to access
  7. your VM from another Redbrick server, you can ignore the login details
  8. (passwords, etc.) on the page that comes up after you turn on the VM. If
  9. you\'re logging in from an external computer, take note of those details
  10. and follow the instructions below - and/or on that page - carefully.
  11. ## Access from other Redbrick servers
  12. Note your VM\'s IP address from the VM Management page (not from the
  13. page that comes up after you switch on your VM). To login simply ssh to
  14. that IP address, with your VM user/pass (not your Redbrick login
  15. details). You will have set up these details when installing the
  16. operating system on your VM.
  17. `ssh username@IP_ADDRESS`
  18. Note that this is the method to use once you login to Redbrick using
  19. PuTTy or whatever, as once you\'re logged in, you\'re using Redbrick
  20. servers.
  21. ## Access from an external machine
  22. You will need to setup a tunnel to get to your VM, if you\'re accessing
  23. from outside Redbrick. To do this, type:
  24. `ssh -L 1337:YOUR_VM_IP_ADDRESS:22 username@login.redbrick.dcu.ie`
  25. This binds port 1337 on your own computer to your VM (on port 22, the
  26. ssh service). So to connect to your VM:
  27. `ssh 127.0.0.1 -p 1337`
  28. This is the method to use when you\'re not logged directly onto
  29. Redbrick, such as when you\'re using your home Linux machine.