2. Login
Here’s how to log in to the quantum simulator system.
The operation example in Windows is described, but you can log in in the same way for other OS such as Linux.
2.1. Operation for First Login
2.1.1. Creating an ssh key
You open Windows PowerShell and create an ed25519 format key in
ssh-keygen .An example of the command is:
PS C:\Users\fujitsu> ssh-keygen -t ed25519
Generating public/private ed25519 key pair.
Enter file in which to save the key (C:\Users\fujitsu/.ssh/id_ed25519): (Leave blank and enter. Can be changed if necessary)
Enter passphrase (empty for no passphrase): (any secure passphrase)
Enter same passphrase again: (any secure passphrase)
Your identification has been saved in C:\Users\fujitsu/.ssh/id_ed25519.
Your public key has been saved in C:\Users\fujitsu/.ssh/id_ed25519.pub.
The key fingerprint is:
SHA256:cg/n/kQ20baFH30QEcxno3+UrpNOmZLVKkyfvUDn5p0 fujitsu@pc
The key's randomart image is:
+--[ED25519 256]--+
| o=+ |
| .o++|
| . =+*|
| +.=+|
| . S ..+o++.|
| o =oo=.Oo.|
| o=.Oo+.|
| . .+++ +|
| ..o..E.|
+----[SHA256]-----+
PS C:\Users\fujitsu>
In the following, the operation example is described on the assumption that the private/public key is created in C:\Users\fujitsu/.ssh/id_ed25519(.pub) .
2.1.2. Sending user account names and key information
Send the desired user account name and public key (id_ed25519.pub) to the Fujitsu representative. we will prefix the user account name with “gXXX -“(where XXX is a three-digit number) that identifies you. The representative will inform you of the user account name after adding the character string.
2.1.3. Configuring ssh config
C:/Users/fujitsu/.ssh/config shows the login settings for the quantum simulator system.
description example
# ssh settings to the jump server
Host qsim-gw
HostName 106.184.62.10
Port (Port number reported by Fujitsu)
User (User account name reported by Fujitsu)
StrictHostKeyChecking no
IdentityFile ~/.ssh/id_ed25519
# ssh settings to the login server
Host qsim
HostName login-server
User (User account name reported by Fujitsu)
IdentityFile ~/.ssh/id_ed25519
StrictHostKeyChecking no
ProxyCommand ssh -W %h:%p qsim-gw
2.2. Login Method
You can log in to the login server at ssh qsim .
PS C:\Users\fujitsu> ssh qsim
Enter passphrase for key 'C:\Users\fujitsu/.ssh/id_ed25519':(passphrase for ssh keys)
Enter passphrase for key 'C:\Users\fujitsu/.ssh/id_ed25519':(passphrase for ssh keys)
Last login: Wed Nov 9 13:41:31 2022 from 172.19.102.2
[(User account name reported by Fujitsu)@loginvm-XXX ~]$
If
[(User account name reported by Fujitsu)@loginvm-XXX ~]$ is displayed, you have logged in correctly.If you don’t want to enter a passphrase, use ssh-agent or something else.
Note
If “WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!” occurs during ssh login, follow the error message to remove the entry in .ssh/known_hosts, and then try ssh again.
you would run a command similar to the following:
ssh-keygen -R 106.184.62.10
ssh-keygen -R login-server
ssh qsim