Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/src/packages/frontend/account/ssh-keys/global-ssh-keys.tsx
Views: 926
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { FormattedMessage } from "react-intl";6import { useRedux } from "@cocalc/frontend/app-framework";7import { A, Paragraph, Text } from "@cocalc/frontend/components";8import { COLORS } from "@cocalc/util/theme";910import SSHKeyList from "./ssh-key-list";1112export default function GlobalSSHKeys() {13const ssh_keys = useRedux("account", "ssh_keys");1415return (16<div style={{ marginTop: "1em" }}>17<SSHKeyList18help={19<Paragraph>20<FormattedMessage21id="account.global-ssh-keys.help"22defaultMessage={`To SSH into a project, use the following23<code>username@host: [project-id-without-dashes]@ssh.cocalc.com</code>24The project id without dashes can be found in the part of project settings about SSH keys.25To SSH between projects, use <code>[project-id-without-dashes]@ssh</code>`}26values={{ code: (c) => <Paragraph code>{c}</Paragraph> }}27/>28</Paragraph>29}30ssh_keys={ssh_keys}31>32<Paragraph style={{ color: COLORS.GRAY_M }}>33<FormattedMessage34id="account.global-ssh-keys.info"35defaultMessage={`The global SSH keys listed here allow you to connect from your computer via SSH36to <strong><i>all projects</i> and <i>compute servers</i></strong>37on which you are an owner or collaborator.38Alternatively, set SSH keys that grant access only to a project in the settings for that project.39See <A>the docs</A>40or the SSH part of the settings page in a project for further instructions.`}41values={{42strong: (c) => <Text strong>{c}</Text>,43i: (c) => <i>{c}</i>,44A: (c) => (45<A href="https://doc.cocalc.com/account/ssh.html">{c}</A>46),47}}48/>49</Paragraph>50</SSHKeyList>51</div>52);53}545556