import { CopyBlock, dracula } from "react-code-blocks"; import { Link } from "react-router-dom"; import { useAuthContext } from "../context/auth_context"; const generateSSHConfig = (username) => `Host chessh Hostname ${process.env.REACT_APP_SSH_SERVER} Port ${process.env.REACT_APP_SSH_PORT} User ${username.includes(" ") ? '"' + username + '"' : username} PubkeyAuthentication yes `; export const Home = () => { const { player, signedIn } = useAuthContext(); if (signedIn) { const sshConfig = generateSSHConfig(player?.username); return ( <>

Welcome, {player?.username}


Getting Started

  1. Consider joining the{" "} CheSSH Discord{" "} to receive notifications when other players are looking for opponents, or when it is your move in a game.
  2. Add a public key, or{" "} set a password.
  3. Insert the following block in your{" "} ssh config:
  4. Then, connect with:
  5. Finally, check out the short man pages .
); } return ( <>

Looks like you're not signed in 👀.

); };