blob: 6e0e32d3a8ad1f05ae3b2a6269ba23d91cd8b994 [file] [log] [blame]
Filip Pytlouna6d4a782015-10-06 16:28:32 +02001=======
2OpenSSH
3=======
4
5OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on. Users of telnet, rlogin, and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions.
6
7Sample pillar
8=============
9
10OpenSSH client
11--------------
12
13OpenSSH client with shared private key
14
15.. code-block:: yaml
16
17 openssh:
18 client:
19 enabled: true
20 user:
21 root:
22 enabled: true
23 private_key: ${private_keys:vaio.newt.cz}
24 user: ${linux:system:user:root}
25
26OpenSSH client with individual private key and known host
27
28.. code-block:: yaml
29
30 openssh:
31 client:
32 enabled: true
33 user:
34 root:
35 enabled: true
36 user: ${linux:system:user:root}
37 known_hosts:
38 - name: repo.domain.com
39 type: rsa
40 fingerprint: dd:fa:e8:68:b1:ea:ea:a0:63:f1:5a:55:48:e1:7e:37
41
42OpenSSH server
43--------------
44
45OpenSSH server with configuration parameters
46
47.. code-block:: yaml
48
49 openssh:
50 server:
51 enabled: true
52 permit_root_login: true
53 public_key_auth: true
54 password_auth: true
55 host_auth: true
56 banner: Welcome to server!
Jiri Konecny2a274232016-02-16 15:49:35 +010057 bind:
58 address: 0.0.0.0
Filip Pytlouna6d4a782015-10-06 16:28:32 +020059
60OpenSSH server with auth keys for users
61
62.. code-block:: yaml
63
64 openssh:
65 server:
66 enabled: true
Jiri Konecny2a274232016-02-16 15:49:35 +010067 bind:
68 address: 0.0.0.0
Filip Pytlouna6d4a782015-10-06 16:28:32 +020069 ...
70 user:
71 newt:
72 enabled: true
73 user: ${linux:system:user:newt}
74 public_keys:
75 - ${public_keys:newt}
76 root:
77 enabled: true
78 user: ${linux:system:user:root}
79 public_keys:
80 - ${public_keys:newt}
81
Filip Pytloundaf8f982015-12-16 11:55:34 +010082OpenSSH server for use with FreeIPA
83
84.. code-block:: yaml
85
86 openssh:
87 server:
88 enabled: true
Jiri Konecny2a274232016-02-16 15:49:35 +010089 bind:
90 address: 0.0.0.0
Filip Pytloundaf8f982015-12-16 11:55:34 +010091 public_key_auth: true
92 authorized_keys_command:
93 command: /usr/bin/sss_ssh_authorizedkeys
94 user: nobody
95
Filip Pytlouna6d4a782015-10-06 16:28:32 +020096Read more
97=========
98
99* http://www.openssh.org/manual.html
100* https://help.ubuntu.com/community/SSH/OpenSSH/Configuring
101* http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
102* http://www.zeitoun.net/articles/ssh-through-http-proxy/start