diff options
Diffstat (limited to 'front/src/routes/home.jsx')
-rw-r--r-- | front/src/routes/home.jsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/front/src/routes/home.jsx b/front/src/routes/home.jsx index d4ba22b..05129a2 100644 --- a/front/src/routes/home.jsx +++ b/front/src/routes/home.jsx @@ -3,11 +3,10 @@ import { Link } from "react-router-dom"; import { useAuthContext } from "../context/auth_context"; -const generateSSHConfig = (username) => ` -Host chessh +const generateSSHConfig = (username) => `Host chessh Hostname ${process.env.REACT_APP_SSH_SERVER} Port ${process.env.REACT_APP_SSH_PORT} - User "${username}" + User ${username.includes(" ") ? '"' + username + '"' : username}" PubkeyAuthentication yes `; |