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
- Host: GitHub
- URL: https://github.com/noahgift/ssh-tips-tricks
- Owner: noahgift
- License: cc0-1.0
- Created: 2021-11-14T19:51:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-23T23:46:15.000Z (almost 4 years ago)
- Last Synced: 2025-01-12T15:32:36.870Z (9 months ago)
- Size: 9.77 KB
- Stars: 5
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ssh-tips-tricks
SSH Tips and Tricks
## 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)