blob: b83fda0151ce029bf20d3f609959dead5e39cfcc [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!
57
58OpenSSH server with auth keys for users
59
60.. code-block:: yaml
61
62 openssh:
63 server:
64 enabled: true
65 ...
66 user:
67 newt:
68 enabled: true
69 user: ${linux:system:user:newt}
70 public_keys:
71 - ${public_keys:newt}
72 root:
73 enabled: true
74 user: ${linux:system:user:root}
75 public_keys:
76 - ${public_keys:newt}
77
Filip Pytloundaf8f982015-12-16 11:55:34 +010078OpenSSH server for use with FreeIPA
79
80.. code-block:: yaml
81
82 openssh:
83 server:
84 enabled: true
85 public_key_auth: true
86 authorized_keys_command:
87 command: /usr/bin/sss_ssh_authorizedkeys
88 user: nobody
89
Filip Pytlouna6d4a782015-10-06 16:28:32 +020090Read more
91=========
92
93* http://www.openssh.org/manual.html
94* https://help.ubuntu.com/community/SSH/OpenSSH/Configuring
95* http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
96* http://www.zeitoun.net/articles/ssh-through-http-proxy/start