-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
24be015
commit ba85b83
Showing
1 changed file
with
8 additions
and
8 deletions.
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 |
---|---|---|
|
@@ -16,28 +16,28 @@ At UPPMAX we allow users to login via SSH, using the program `ssh`. | |
For WSL2 under Windows10 or Windows11, | ||
here as a neat way to get persistent key-manager in WSL2 (credits: [original source](https://esc.sh/blog/ssh-agent-windows10-wsl2/)). | ||
|
||
``` | ||
```bash | ||
sudo apt-get install keychain | ||
``` | ||
|
||
Replace `XXXX` with the output of `hostname` command on the command line. | ||
|
||
``` | ||
```bash | ||
/usr/bin/keychain -q --nogui $HOME/.ssh/id_ed25519_key | ||
source $HOME/.keychain/XXXX-sh | ||
``` | ||
|
||
Remove `-q` to get some information if you want | ||
|
||
``` | ||
```bash | ||
* keychain 2.8.5 ~ http://www.funtoo.org | ||
* Found existing ssh-agent: 4487 | ||
* Known ssh key: /home/user/.ssh/id_ed25519_key | ||
``` | ||
|
||
First time you login, you will be asked for the password and the key will be handled by the key-manager. Check with | ||
|
||
``` | ||
```bash | ||
ssh-add -l | ||
256 SHA256:wLJvQOM.... ....cTTtiU MyNewKey (ED25519) | ||
``` | ||
|
@@ -47,13 +47,13 @@ ssh-add -l | |
In MobaXterm you can use the internal `MobAgent` or/and the `Peagent` | ||
from the `PuTTy` tools. | ||
|
||
![](./img/mobaxterm_use_internal_ssh_agend_mobagent.png) | ||
![MobaXterm](./img/mobaxterm_use_internal_ssh_agend_mobagent.png) | ||
|
||
## OPTIONAL: SSH config | ||
|
||
Example `$HOME/.ssh/config` file to make your work easier. | ||
|
||
``` | ||
```bash | ||
Host rackham | ||
User username | ||
HostName rackham.uppmax.uu.se | ||
|
@@ -73,7 +73,7 @@ ServerAliveInterval 120 | |
|
||
Now | ||
|
||
``` | ||
```bash | ||
# without config | ||
ssh -X [email protected] | ||
# with config | ||
|
@@ -90,4 +90,4 @@ sftp ... | |
|
||
## Links | ||
|
||
* [SSH Tips by Pavlin Mitev](https://hackmd.io/@pmitev/SSH_tips) | ||
- [SSH Tips by Pavlin Mitev](https://hackmd.io/@pmitev/SSH_tips) |