07975dda480b26081843fb2bf0295a67a1d31a40

Author
Ayman Bagabas <ayman.bagabas@gmail.com>
Committer
Ayman Bagabas <ayman.bagabas@gmail.com>
Date

Message

typo(ssh): add space after port

Diff

This diff is truncated to protect this page.

  1diff --git a/README.md b/README.md
  2index bc02e080626222db4f28f620b787b83d6263d64f..77dcbb8a796b8997b175e12a9cb9e27114e95cbe 100644
  3--- a/README.md
  4+++ b/README.md
  5@@ -206,10 +206,10 @@ A [Docker image][docker] is also available.
  6 Configuring Soft Serve is simple and straightforward. Use the SSH command-line
  7 interface to manage access settings, users, and repos.
  8 
  9-For more info try `ssh localhost -i ~/.ssh/id_ed25519 -p23231 help`. Make sure
 10+For more info try `ssh localhost -i ~/.ssh/id_ed25519 -p 23231 help`. Make sure
 11 you use your key here.
 12 
 13-> **Note** The `-i` and `-p` parts will be omitted in the examples below for
 14+> **Note** The `-i` parts will be omitted in the examples below for
 15 > brevity.
 16 
 17 ### Access Levels
 18@@ -245,7 +245,7 @@ $ ssh localhost settings
 19 Manage server settings
 20 
 21 Usage:
 22-  ssh -p23231 localhost settings [command]
 23+  ssh -p 23231 localhost settings [command]
 24 
 25 Available Commands:
 26   allow-keyless Set or get allow keyless access to repositories
 27@@ -254,7 +254,7 @@ Available Commands:
 28 Flags:
 29   -h, --help   help for settings
 30 
 31-Use "ssh -p23231 localhost settings [command] --help" for more information about a command.
 32+Use "ssh -p 23231 localhost settings [command] --help" for more information about a command.
 33 ```
 34 
 35 > **Note** These settings can only be changed by admins.
 36@@ -277,17 +277,17 @@ To create a new user use simply use `user create`:
 37 
 38 ```sh
 39 # Create a new user
 40-ssh -p23231 localhost user create beatrice
 41+ssh -p 23231 localhost user create beatrice
 42 
 43 # Add user keys
 44-ssh -p23231 localhost user add-pubkey beatrice ssh-rsa AAAAB3Nz...
 45-ssh -p23231 localhost user add-pubkey beatrice ssh-ed25519 AAAA...
 46+ssh -p 23231 localhost user add-pubkey beatrice ssh-rsa AAAAB3Nz...
 47+ssh -p 23231 localhost user add-pubkey beatrice ssh-ed25519 AAAA...
 48 
 49 # Create another user with public key
 50-ssh -p23231 localhost user create frankie '-k "ssh-ed25519 AAAATzN..."'
 51+ssh -p 23231 localhost user create frankie '-k "ssh-ed25519 AAAATzN..."'
 52 
 53 # Need help?
 54-ssh -p23231 localhost user help
 55+ssh -p 23231 localhost user help
 56 ```
 57 
 58 Once a user has access, they get `read-only` access to public repositories. And
 59@@ -297,16 +297,16 @@ Non-admin users can manage their keys using the `pubkey` command:
 60 
 61 ```sh
 62 # List user keys
 63-ssh -p23231 localhost pubkey list
 64+ssh -p 23231 localhost pubkey list
 65 
 66 # Add key
 67-ssh -p23231 localhost pubkey add ssh-ed25519 AAAA...
 68+ssh -p 23231 localhost pubkey add ssh-ed25519 AAAA...
 69 
 70 # Wanna change your username?
 71-ssh -p23231 localhost set-username yolo
 72+ssh -p 23231 localhost set-username yolo
 73 
 74 # To display user info
 75-ssh -p23231 localhost info
 76+ssh -p 23231 localhost info
 77 ```
 78 
 79 ## Repositories
 80@@ -315,11 +315,11 @@ You can manage repositories using the `repo` command.
 81 
 82 ```sh
 83 # Run repo help
 84-$ ssh -p23231 localhost repo help
 85+$ ssh -p 23231 localhost repo help
 86 Manage repositories
 87 
 88 Usage:
 89-  ssh -p23231 localhost repo [command]
 90+  ssh -p 23231 localhost repo [command]
 91 
 92 Aliases:
 93   repo, repos, repository, repositories
 94@@ -345,7 +345,7 @@ Available Commands:
 95 Flags:
 96   -h, --help   help for repo
 97 
 98-Use "ssh -p23231 localhost repo [command] --help" for more information about a command.
 99+Use "ssh -p 23231 localhost repo [command] --help" for more information about a command.
100 ```
101 
102 ### Creating Repositories
103@@ -355,16 +355,16 @@ permission. You can use the `repo create <repo>`:
104 
105diff --git a/server/cmd/cmd.go b/server/cmd/cmd.go
106index d2a369a2ab246f1e79774b1e7e0a237f089c4392..436f5ea8526c7ec0809898e6f28aa41f53a6b0a6 100644
107--- a/server/cmd/cmd.go
108+++ b/server/cmd/cmd.go
109@@ -117,7 +117,7 @@ func rootCommand(cfg *config.Config, s ssh.Session) *cobra.Command {
110 
111 	sshCmd := "ssh"
112 	if port != "22" {
113-		sshCmd += " -p" + port
114+		sshCmd += " -p " + port
115 	}
116 
117 	sshCmd += " " + hostname