Shared Hosting for Everyone, imagined by developers, for developers.Discovering the Public Cloud
Connecting in SSH mode with its public key (rather than its password) offers some advantages: enhanced security, the ability to define a “blank” password, etc. Here are the steps to follow to configure your SSH account with a public key.
The actions are performed using PuTTY, an SSH client available free of charge.
Generate the private key:
Declare the key on the server by copying this key to the
$HOME/.ssh/authorized_keys file in your alwaysdata account,
Connect in SSH mode: configure your PuTTY session in the Auth category then in Private Key file for auth, load your private key.
$ mkdir -p $HOME/.ssh $ chmod 0700 $HOME/.ssh $ ssh-keygen -t ed25519 -f $HOME/.ssh/id_ed25519
To never have to enter your password when connecting in SSH mode, specify a blank “passphrase”.
Declare the public key (.pub) on the server:
$ ssh-copy-id -i $HOME/.ssh/id_ed25519.pub [user]@ssh-[account].alwaysdata.net
Or by copying the content of this file to the
$HOME/.ssh/authorized_keys file in your alwaysdata account.
[user] with your SSH user name and
ssh-[account].alwaysdata.net with your SSH hostname.