SSH
Connecting to a Futrou v1 Serverlet over SSH.
Connecting to a Serverlet using SSH
Unlike most ordinary web hosting, a Serverlet supports SSH access. That lets you control the Serverlet as comfortably as your own computer.
Every Serverlet has its own SSH port. You will find it in the administration on the Overview card, together with a ready-made command for a quick connection.
ssh {user}@{host} -p {serverlet-port}For example:
ssh applet@serlo.futrou.com -p 10022On Linux and on Windows 10 and newer it is enough to enter the command in the terminal. In other cases we recommend the PuTTY client.
Port forwarding
SSH lets you expose a port of an application from the remote Serverlet on your local computer:
ssh -L 127.0.0.1:{local-port}:{physical-server}:{application-port} {user}@{physical-server} -p {serverlet-port}For example, this command exposes the remote web server at the local address 127.0.0.1:80:
ssh -L 127.0.0.1:80:serlo.futrou.com:80 applet@serlo.futrou.com -p 10022Logging in with a public key
A private and public key pair allows you to log in without a password. First create a key:
ssh-keygen -t ecdsa -b 384 -C {e-mail}Upload the public key id_ecdsa.pub to the .ssh/ directory in the home directory of the Serverlet user. For the applet user that is /srv/.ssh/. You can upload it over SFTP, or use:
ssh-copy-id -i {public-key-location} {user}@{physical-server} -p {serverlet-port}For example:
ssh-copy-id -i /home/user/.ssh/id_ecdsa.pub applet@serlo.futrou.com -p 10022Last updated
