An open API service indexing awesome lists of open source software.

https://github.com/noahgift/ssh-tips-tricks

SSH Tips and Tricks
https://github.com/noahgift/ssh-tips-tricks

Last synced: 7 months ago
JSON representation

SSH Tips and Tricks

Awesome Lists containing this project

README

          

# ssh-tips-tricks
SSH Tips and Tricks

![STOOIBOXY](https://user-images.githubusercontent.com/58792/141698988-76cb5889-a766-4a03-bc25-0fd02a097e23.png)

## Create SSH Keys

* Step 1:

```
ssh-keygen -t rsa
```

* Step 2:

`cat /home/ec2-user/.ssh/id_rsa.pub`

* Step 3:

Copy to Github

* Step 4:

Clone repo

## SSH into Cloud9

1. Open port 22 to 0.0.0.0 inside EC2 security groups
2. Paste local `id_rsa.pub`
3. `ssh -v ec2-user@`

### Port forwarding remote server

1. Create connection
```
ssh -N -L 8000:127.0.0.1:8000 ec2-user@
```
2. Launch a remote server: `python3 -m http.server`
3. open web browser on your laptop or workstation or dev environment

## References

* [Setup SSH Keys Github Docs](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account)