-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# knowledgebase | ||
- [[SSH]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- [[ssh dir permissions]] | ||
- [[ssh cipher benchmark]] | ||
- [[ssh jump server]] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
```bash | ||
for i in `ssh -Q cipher`; | ||
do dd if=/dev/zero bs=1M cunt=100 2> /dev/null \ | ||
| ssh -c $i someuser@localhost "(time -p cat) > /dev/null" 2>&1 \ | ||
| grep real | awk '{print "'$i': "100 / $2" MB/s" }'; done | ||
``` | ||
|
||
#ssh #cipher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- `chmod 0700 ~/.ssh` | ||
- `chmod 600 ~/.ssh/authorized_keys` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Here is the example configuration of access to work PC connected to home openvpn server | ||
```shell | ||
Host ubuntu-rpi | ||
HostName ubuntu-rpi | ||
User ubuntu | ||
RequestTTY yes | ||
RemoteCommand tmux new-session -A -s main | ||
|
||
Host router | ||
HostName 192.168.1.1 | ||
User admin | ||
Port 8888 | ||
|
||
Host srukr-redeyed-pc | ||
HostName 10.8.0.42 | ||
User redeyed | ||
ProxyJump router | ||
RequestTTY yes | ||
PasswordAuthentication yes | ||
RemoteCommand tmux new-session -A -s main | ||
LocalForward 60012 localhost:60012 | ||
|
||
``` | ||
|
||
Now I can access `srukr-redeyed-pc` just type `ssh srukr-redeyed-pc` |