website view en/doc/handbook/secure-server.html @ rev 669

Move year to slitaz.css
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 30 21:52:02 2010 +0200 (2010-10-30)
parents b8788d938e18
children
line source
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <title>SliTaz Handbook (en) - Secure SHell (SSH)</title>
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
7 <meta name="description" content="slitaz English handbook" />
8 <meta name="expires" content="never" />
9 <meta name="modified" content="2008-07-18 05:30:00" />
10 <meta name="publisher" content="www.slitaz.org" />
11 <meta name="author" content="Christophe Lincoln" />
12 <link rel="shortcut icon" href="favicon.ico" />
13 <link rel="stylesheet" type="text/css" href="book.css" />
14 </head>
15 <body bgcolor="#ffffff">
17 <!-- Header and quick navigation -->
18 <div id="header">
19 <div id="quicknav" align="right">
20 <a name="top"></a>
21 <a href="security.html">Security</a> |
22 <a href="index.html">Table of contents</a>
23 </div>
24 <h1><font color="#3e1220">SliTaz Handbook (en)</font></h1>
25 </div>
27 <!-- Content. -->
28 <div id="content">
29 <div class="content-right"></div>
31 <h2><font color="#df8f06">Secure SHell (SSH)</font></h2>
33 <ul>
34 <li><a href="secure-server.html#about">About Dropbear.</a></li>
35 <li><a href="secure-server.html#dbclient">Connecting to a remote host</a> - (dbclient).</li>
36 <li><a href="secure-server.html#scp">Transfer files</a> - (scp).</li>
37 <li><a href="secure-server.html#dropbearkey">Generate keys rsa/dss</a> - (dropbearkey).</li>
38 <li><a href="secure-server.html#start-stop-restart">Start, stop, restart SSH server.</a></li>
39 </ul>
41 <a name="about"></a>
42 <h3>About Dropbear</h3>
43 <p>
44 Control and administer remotely with the Dropbear SSH secure server. Dropbear is a small SSH client/server
45 supporting SSH 2. It's compatible with OpenSSH and uses ~/.ssh/authorized_keys for the management of public keys.
46 Dropbear also provides its own version of <code>scp</code>, allowing you to copy files
47 between machines in a secure manner.
48 </p>
49 <p>
50 Project website:
51 <a href="http://matt.ucc.asn.au/dropbear/dropbear.html">matt.ucc.asn.au/dropbear/dropbear.html</a>
52 </p>
54 <a name="dbclient"></a>
55 <h3>Connecting to a remote host with dbclient</h3>
56 <p>
57 The configuration files for the SSH client are located in the ~/.ssh directory of each user, this contains
58 the authorized_keys and known_hosts files. The directory ~/.ssh and known_hosts file are automatically created
59 the first time you run the Dropbear client (dbclient).
60 </p>
61 <p>
62 To connect to a remote host employing the user and machine name:
63 </p>
64 <pre> $ dbclient user@machine.org
65 </pre>
66 <p>
67 You can also connect using the IP address of the machine:
68 </p>
69 <pre> $ dbclient user@192.168.0.2
70 </pre>
72 <a name="scp"></a>
73 <h3>Transfer of remote files with scp</h3>
74 <p>
75 To copy a file from one computer to another, scp can be utilized in the following ways. To copy a file
76 named page.html to a remote directory of the user (don't forget the <code>:</code> after the machine name or
77 IP address):
78 </p>
79 <pre> $ scp page.html user@machine.org:path/remote/directory
80 </pre>
81 <p>
82 Copy a file from a remote machine to your local machine:
83 </p>
84 <pre> $ scp user@machine.org:path/remote/directory/page.html /path/your/directory
85 </pre>
87 <a name="dropbearkey"></a>
88 <h3>Generate rsa/dss keys with dropbearkey</h3>
89 <p>
90 Dropbear provides <code>dropbearkey</code> to generate the protected rsa and
91 dss keys. Note that when you start the server for the first time, secure keys will be
92 automatically generated if they don't already exist. You can use <code>dropbearkey</code> with
93 the following arguments:
94 </p>
95 <pre> # dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
96 # dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
97 </pre>
99 <a name="start-stop-restart"></a>
100 <h3>Start, stop, restart the SSH server</h3>
101 <p>
102 By default SliTaz will not start the SSH server at boot. To be launched automatically, <code>dropbear</code>
103 must be added to the variable RUN_DAEMONS in the <code>/etc/rcS.conf</code> file. To start, stop or restart
104 the SSH server, use the following commands: <code>/etc/init.d/dropbear [start|stop|restart]</code>.
105 Example to start the server:
106 </p>
107 <pre> # /etc/init.d/dropbear start
108 </pre>
109 <p>
110 Note that the server supports the passing of various options when launched. To change the default values,
111 simply modify the daemons configuration file <code>/etc/daemons.conf</code>.
112 </p>
114 <!-- End of content -->
115 </div>
117 <!-- Footer. -->
118 <div id="footer">
119 <div class="footer-right"></div>
120 <a href="secure-server.html#top">Top of the page</a> |
121 <a href="index.html">Table of contents</a>
122 </div>
124 <div id="copy">
125 Copyright &copy; <span class="year"></span> <a href="http://www.slitaz.org/en/">SliTaz</a> -
126 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
127 Documentation is under
128 <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
129 and code is <a href="http://validator.w3.org/">valid xHTML 1.0</a>.
130 </div>
132 </body>
133 </html>