--- title: 'Logging in with SSH' taxonomy: category: - docs external_links: process: true no_follow: true target: _blank mode: active --- [toc] ## Prerequisites{#before} Generate a public/private key pair by following [Generating Key Pair and Registering Public Key](/login/pubkey), and register the public key via [the User Portal](https://web.kudpc.kyoto-u.ac.jp/portal/). ## How to Log In{#procedure} 1. Start 'Command Prompt' for Windows or 'Terminal' for Mac.<br> On Windows, you can also log in using [MobaXterm](/login/mobaxterm). MobaXterm is a handy toolbox for x11 servers, SSH clients, file transfers, etc. 2. Connect to the login node using the ssh command. ```nohighlight $ ssh username@hostname ``` 3. If a prompt of the form [username@hostname ~] is displayed, the login is successful. ### Connection Destination{#access} The host names for each system are as follows. | System Name | Host Name | Note | | --- | --- | --- | | System A | camphor.kudpc.kyoto-u.ac.jp | Consists of two login nodes. | | System B/Cloud | laurel.kudpc.kyoto-u.ac.jp | Consists of three login nodes. | | System C | cinnamon.kudpc.kyoto-u.ac.jp | Consists of three login nodes. | | System G | gardenia.kudpc.kyoto-u.ac.jp | Consists of two login nodes. | <!-- | A | camphor.kudpc.kyoto-u.ac.jp | Load-balanced with two login nodes. Only users of System A can log in. | | B | laurel.kudpc.kyoto-u.ac.jp | Load-balanced with three login nodes. | | C | cinnamon.kudpc.kyoto-u.ac.jp | Connect to the laurel login node with the Cinnamon environment loaded. | | G | gardenia.kudpc.kyoto-u.ac.jp | Load-balanced with four login nodes. | --> ### Example{#example} * Log in to the System A with the user ID b59999. ```nohighlight $ ssh b59999@camphor.kudpc.kyoto-u.ac.jp Enter passphrase for key 'id_rsa': ``` * Specify the private key and log in to the System B with the user ID b59999. ```nohighlight $ ssh -i ~/.ssh/id_rsa_kudpc b59999@laurel.kudpc.kyoto-u.ac.jp Enter passphrase for key 'id_rsa': ```