i should really stop trying to be funny

This commit is contained in:
ben clark 2021-04-06 19:26:04 +00:00
parent 6b74a98aa3
commit dda1f8920b
2 changed files with 5 additions and 4 deletions

View File

@ -33,7 +33,8 @@ now just run this command to connect
```bash
ssh <your username>@southlondon.cc
```
```
<!--syntax highlighting seems to fuck this up huh -->
if you haven't already used cmder to generate your keys, you'll need to append `-i <path to your private key>` to make sure ssh can see them.
say yes if it asks you to verify the fingerprint. if all goes well, you should be dumped into a prompt, you can now do whatever you need to do.

View File

@ -39,7 +39,7 @@ now, let's add some options
User giovanni
Port 24
```
hopefully, all those options should be fairly easy to understand, you read the manpages, right? `HostName` is the host you want to connect to, `User` is the user you want to log in as and `Port` is the port you want to use.
hopefully, all those options should be fairly easy to understand, `HostName` is the host you want to connect to, `User` is the user you want to log in as and `Port` is the port you want to use.
now, we'll be left with this file
```
Host site
@ -47,7 +47,7 @@ Host site
User giovanni
Port 24
```
finally, save it and let's give it a go!
finally, save it and test it out.
```
$ ssh site
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-51-generic x86_64)
@ -72,5 +72,5 @@ Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-51-generic x86_64)
Last login: Sat Mar 13 18:07:30 2021 from 91.110.54.64
giovanni@cark:~$
```
as you can see, by using the ssh config file strat, we've saved many precious frames in our ssh session, that we can use to our advantage later on.
as you can see, ssh has seen our config and used it to fill in all the details for us, which has saved us a few frames that we can use later on.
this is only the tip of the iceberg (well, more like the middle of the iceberg, there aren't *that* many things you can do with you ssh config file), go search up some examples on the internet and enjoy the extra seconds of your life not spent typing in ssh commands.