Skip to content

Commit

Permalink
Clean markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed May 14, 2024
1 parent 24be015 commit ba85b83
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/software/ssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```
Expand All @@ -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
Expand All @@ -73,7 +73,7 @@ ServerAliveInterval 120

Now

```
```bash
# without config
ssh -X [email protected]
# with config
Expand All @@ -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)

0 comments on commit ba85b83

Please sign in to comment.