Home Community Forum IRC Shop Bugs Hg Cook
SliTaz GNU/Linux official and community documentation wiki.
.png

Secure SHell (SSH)

About Dropbear

Control and administer remotely with the Dropbear SSH secure server. Dropbear is a small SSH client/server supporting SSH 2. It's compatible with OpenSSH and uses ~/.ssh/authorized_keys for the management of public keys. Dropbear also provides its own version of scp, allowing you to copy files between machines in a secure manner.

Project website: http://matt.ucc.asn.au/dropbear/dropbear.html

Connecting to a remote host with dbclient

The configuration files for the SSH client are located in the ~/.ssh directory of each user, this contains the authorized_keys and known_hosts files. The directory ~/.ssh and known_hosts file are automatically created the first time you run the Dropbear client (dbclient).

To connect to a remote host employing the user and machine name:

 $ dbclient user@machine.org 

You can also connect using the IP address of the machine:

 $ dbclient user@192.168.0.2 

Transfer of remote files with scp

To copy a file from one computer to another, scp can be utilized in the following ways. To copy a file named page.html to a remote directory of the user (don't forget the : after the machine name or IP address):

 $ scp page.html user@machine.org:path/remote/directory 

Copy a file from a remote machine to your local machine:

 $ scp user@machine.org:path/remote/directory/page.html /path/your/directory 

Generate rsa/dss keys with dropbearkey

Dropbear provides dropbearkey to generate the protected rsa and dss keys. Note that when you start the server for the first time, secure keys will be automatically generated if they don't already exist. You can use dropbearkey with the following arguments:

 # dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
 # dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key

Start, stop, restart the SSH server

By default SliTaz will not start the SSH server at boot. To be launched automatically, dropbear must be added to the variable RUN_DAEMONS in the /etc/rcS.conf file. To start, stop or restart the SSH server, use the following commands: /etc/init.d/dropbear [start|stop|restart]. Example to start the server:

 # /etc/init.d/dropbear start 

Note that the server supports the passing of various options when launched. To change the default values, simply modify the daemons configuration file /etc/daemons.conf.

 
en/handbook/ssh.txt ยท Last modified: 2010/07/08 17:14 (external edit)