Linux & Mac
Start a Terminal/console and enter the following command to generate a4096 Bytes SSH key :
> ssh-keygen -b 4096
Follow the onscreen instructions until you see the following:
Generating public/private rsa key pair.
Enter file in which to save the key (/home/username/.ssh/id_rsa):
our identification has been saved in /home/username/.ssh/id_rsa.
Your public key has been saved in /home/username/.ssh/id_rsa.pub.
The key fingerprint is:
...
Read and print the public key by using the following command (please replace "username" by your current username:
> cat /home/username/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8teh2NJ42qYZV98gTNhumO1b6rMYIkAfRVazl
k6dSS3xf2MXJ4YHsDacdjtJ+evXCFBy/IWgdkFtcvsGAMZ2N1RdvhDyQYcy6NDaJCBYw1K6Gv5fJ
SHCiFXvMF0MRRUSMneYlidxU3U2q66yt/wPmw1yRsQagtNKHAzFUCSOB1nFz0RkqvqgARrHTY0bd
aS0weA//aK9f6z+Y4THPbcCj4xPH4iGikFMPrFivP8Z6tidzVpAtbr1sXmJGZazYWrU3FoK2a1sF
i4ANmLy7NULWK36yU0Rp9bFJ4o0/4PTkZiDCsK0QyHhAJXdLN7ZHpfJtHIPCnexmwIMLfIhCWhO5
user@swisscenter.com
copy the pubic key in your Apanel SSH manager under the "Public SSH key" field.
you can now connect ssh to your account:
> ssh nom_utilisateur_console@nom_de_domaine.ch
Windows
Use Puttygen to generate a key as follows:
- In "Number of bits in a generated key", enter 4096
- Click on Generate (Please move your mouse curson within the window during the operation)
- Enter a passphrase to password protect your key
- Save the public key by clicking "Save private key", name the resulting file (key.rsa per example)
copy the pubic key in your Apanel SSH manager under the "Public SSH key" field..
Démarrer Putty
In the left pane, click on Session and fill the "Host name (or IP address)" field with your hostname or ip
in the left pane, click Connection then SSH, then Auth
in the field Private key file for authentification , click Browse, select the previously created kea file, save.
click Open in Putty.
Article ID: 130, Created: 4/25/2018 at 9:35 AM, Modified: 4/25/2018 at 9:39 AM