User Tools

Site Tools


howto:ssh

This is an old revision of the document!


SSH

generating keys, setting up config, basic and usefull commands

What's up folks! Markiplier here, I will show you how to work with SSH for different systems. I don't have any expirience with Apple software but it should handle the same as Linux I will mention if Windows needs special attention.

SSH stands for Secure Shell. It's used most commonly for connecting to servers/computers. It was a replacement for Telnet, which is plaintext, while SSH uses stronk encryption. The most common SSH is OpenBSD's OpenSSH, but there are alternatives like Dropbear.

Everything written inside <brackets should be replaced, with them included> I will write $ if user can write a command and # if root/admin has to intervene

if you want to connect to a server, write in your shell
$ ssh <user>@<ip or domain>

There flags that you should know

  • -p for port
  • -i <your private key include key
  • -v verbose, if you need more info on what is happening during connection and breaking it
  • -R <server port>:localhost:<client port> port forwarding from server to client
  • -L <client port>:localhost:<server port> port forwarding from client to server
  • -N do not execute any commands, useful for port forwarding
  • -f run ssh in background after auth, also useful for port forwarding
config
Host <yourname>
  Hostname <your IP/domain>
  User <your username>
  IdentityFile <path to private SSH key>
  Port <port opened for SSH>

SSH clients for Windows

howto/ssh.1783616658.txt.gz · Last modified: by zachary

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki