You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Making a nickname with Private key](#making-a-nickname-with-key)
11
-
*[Making a nickname with Password](#making-a-nickname-with-password)
9
+
*[Importing SSH keys](#importing-ssh-keys)
10
+
*[Connecting to a host](#connecting-to-a-host)
12
11
*[Commands](#commands)
13
12
*[version](#version)
14
-
*[add [-password]](#add)
15
-
*[show [nickname]](#show)
16
13
*[connect [nickname]](#connect)
17
-
*[delete [nickname]](#delete)
18
-
*[edit [nickname][arg]](#edit)
19
14
*[keygen](#keygen)
20
15
*[help [command]](#help)
21
16
*[clear](#clear)
@@ -28,82 +23,61 @@ For Version beta-3.0
28
23
29
24
## Getting Started
30
25
31
-
### Nicknames
32
-
33
-
SSH connections are saved as **nicknames**, each nickname has to be unique.
34
-
35
26
### Generating SSH keys
36
27
37
-
SSH keys serve as a means of identifying yourself to an SSH server. To Generate your private and public key, SWSH uses an add-on, swsh-keygen. You can [build swsh-keygen](https://github.com/SecureWindowsShell/swsh-keygen) yourself if you want and place the executable (.exe) in SWSH's root directory.
28
+
SSH keys serve as a means of identifying yourself to an SSH server. To Generate your private and public key, SWSH uses an add-on, swsh-keygen. You can [build swsh-keygen](https://github.com/SecureWindowsShell/swsh-keygen) yourself if you want and place the executable (.exe) in SWSH's root (installation) directory.
38
29
39
-
Use command ```keygen``` to tell SWSH that you want to generate a new RSA key pair for SSH connection after that just follow the prompts.
30
+
Use command ```keygen``` to tell SWSH that you want to generate a new RSA key pair for SSH connection after that just follow the prompts.
40
31
You'll be asked for locations to store your keys, leave it blank if you want it to be default.
41
32
Output will be similar to this:
42
33
43
34
```swsh
44
35
/users/muzzammil:swsh> keygen
36
+
37
+
Generating public/private rsa key pair.
45
38
exit or -e to cancel.
46
-
Enter path to save private key (swsh.private):
47
-
Enter path to save public key (swsh.public):
39
+
Enter absolute path to save private key (%appdata%/SWSH/swsh.private):
40
+
Enter absolute path to save public key (%appdata%/SWSH/swsh.public):
To add a new nickname run ```add``` and follow the prompts:
58
-
59
-
```swsh
60
-
Path to private key: C:\path\to\ssh\private.key
61
-
Username: root
62
-
Server: my.server.ssh
63
-
Unique Nickname: server.ssh
64
-
```
46
+
### Importing SSH keys
65
47
66
-
### Making a nickname with Password
48
+
If you already have SSH keys and want to use them instead of creating a new pair, you can! Use ```keygen import``` command to do so and just follow the prompts.
67
49
68
-
To add a new nickname run ```add -password``` and follow the prompts:
50
+
NOTE: DO **NOT** SHARE YOUR PRIVATE KEY!
69
51
70
-
```swsh
71
-
Username: root
72
-
Server: my.server.ssh
73
-
Unique Nickname: server.ssh
74
-
```
52
+
### Connecting to a host
75
53
76
-
### Connecting to server
54
+
To connect run ```connect username@host```.
77
55
78
-
To connect run ```connect nickname```.
56
+
To use a password connection, use tag `-p` like this: ```connect username@host -p```.
79
57
80
-
If done properly, output would be similar to the following (you will be asked for a password if you didn't add a key):
58
+
If done properly, output would be similar to the following:
Uploads files and directories. 'upload -h' for help.
177
+
upload [--dir]* [args] [user@host]:[location]
244
178
245
-
'args' are seperated using spaces ( ) and last 'arg' will be treated as server data which includes nickname as well as the location, part after the colon (:), where the data is to be uploaded. Use flag '--dir' to upload directiories. Do not use absolute paths for local path, change working directory to navigate.
179
+
'args' are seperated using spaces ( ) and last 'arg' will be treated as server data which includes username and host location as well as the location of data to upload, part after the colon (:), where the data is to be uploaded. Use flag '--dir' to upload directiories. Do not use absolute paths for local path, change working directory to navigate.
0 commit comments