Secure Shell (SSH) Client Configuration
Ensure secure configuration of your SSH client by setting proper permissions and configurations.
Create A Socks5 Tunnel
ssh -D 5050 username@server.com
!!! "Set correct permission via character"
```bash
chmod -R u+rw,go-rwx ~/.ssh/*
```
!!! "Set correct permission via octal"
```bash
chmod 700 ~/.ssh
chmod 644 ~/.ssh/authorized_keys
chmod 644 ~/.ssh/known_hosts
chmod 644 ~/.ssh/config
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub
chmod 600 ~/.ssh/github_rsa
chmod 644 ~/.ssh/github_rsa.pub
chmod 600 ~/.ssh/mozilla_rsa
chmod 644 ~/.ssh/mozilla_rsa.pub
```
!!! "Set correct permissions on server side"
```bash
mkdir .ssh
chmod g-w ~/.ssh
chmod 600 ~/.ssh/authorized_keys
chmod 600 /etc/dropbear/authorized_keys
```
!!! "Query for options"
```bash
ssh -Q cipher
ssh -Q cipher-auth
ssh -Q help
ssh -Q mac
ssh -Q kex
ssh -Q kex|xargs|sed 's/ /,/g'
ssh -Q key
ssh -Q key-cert
ssh -Q key-plain
ssh -Q key-sig
ssh -Q protocol-verrsion
ssh -Q sig
```