2020-05-13 08:41:07 +00:00
# ssh - windows usage
2020-05-23 08:49:32 +00:00
## windows 10
windows 10 1809 or later has openssh built in, so you no longer need to install third-party tools. if openssh is not enabled, please see microsoft's documentation on [openssh in windows ](https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_overview ).
### generating your keypair
2020-05-23 08:56:07 +00:00
* open your new shell
2020-05-23 08:49:32 +00:00
2022-05-29 08:00:10 +00:00
* create your `.ssh` directory in `%UserProfile%`
2020-05-23 08:49:32 +00:00
```powershell
mkdir .ssh
```
2020-05-23 08:56:07 +00:00
* create your keypair
2020-05-23 08:49:32 +00:00
for ed25519 keys:
```powershell
ssh-keygen -t ed25519 -a 100
```
for rsa keys:
```powershell
ssh-keygen -t rsa -b 4096
```
2020-05-23 08:56:07 +00:00
* if you press enter to accept the defaults, your public and private key will
2020-05-23 08:49:32 +00:00
be located at `%UserProfile%\.ssh\id_ed25519.pub` and `%UserProfile%\.ssh\id_ed25519` respectively (or
`%UserProfile%\.ssh\id_rsa.pub` and `%UserProfile$\.ssh\id_rsa` if you chose rsa type)
2020-05-23 08:56:07 +00:00
* `type %UserProfile%\.ssh\id_ed25519.pub` (or `type %UserProfile%\.ssh\id_rsa.pub` for rsa)
2020-05-23 08:49:32 +00:00
2020-05-23 08:56:07 +00:00
* copy the output of the last command and paste it in the sshkey field on the signup form.
2020-05-23 08:49:32 +00:00
### using your keypair
2020-05-23 08:56:07 +00:00
* open powershell (right click start button and select "windows powershell")
2020-05-23 08:49:32 +00:00
2020-05-23 08:56:07 +00:00
* `ssh` to envs.net:
2020-05-23 08:49:32 +00:00
```bash
ssh username@envs.net
```
---
## legacy windows
older versions of windows unfortunately do not come with openssh, and you will need to install a third-party tool. you may choose from any of the following options:
- [windows subsystem for linux ](https://docs.microsoft.com/en-us/windows/wsl/install-win10 )
- [msys2 ](http://www.msys2.org/ )
- [git bash ](https://git-scm.com )
2020-05-23 08:56:07 +00:00
* open your new shell
2020-05-23 08:49:32 +00:00
2020-05-23 08:56:07 +00:00
* create your .ssh directory
2020-05-23 08:49:32 +00:00
```bash
mkdir .ssh
```
2020-05-23 08:56:07 +00:00
* create your keypair
2020-05-23 08:49:32 +00:00
for ed25519 keys:
```bash
ssh-keygen -t ed25519 -a 100
```
for rsa keys:
```bash
ssh-keygen -t rsa -b 4096
```
2020-05-23 08:56:07 +00:00
* if you press enter to accept the defaults, your public and private key will
2020-05-23 08:49:32 +00:00
be located at `~/.ssh/id_ed25519.pub` and `~/.ssh/id_ed25519` respectively (or
`~/.ssh/id_rsa.pub` and `~/.ssh/id_rsa` if you chose rsa type)
2020-05-23 08:56:07 +00:00
* `cat ~/.ssh/id_ed25519.pub` (or `cat ~/.ssh/id_rsa.pub` for rsa)
2020-05-23 08:49:32 +00:00
2021-09-12 12:47:35 +00:00
* copy the output of the last command and paste it in the sshkey field of the sign-up form.
2020-05-23 08:49:32 +00:00
### using your keypair
2020-05-23 08:56:07 +00:00
* open terminal (location will vary depending on your choice)
2020-05-23 08:49:32 +00:00
2020-05-23 08:56:07 +00:00
* `ssh` to envs.net:
2020-05-23 08:49:32 +00:00
```bash
ssh username@envs.net
```