blob: b22cc25931d418c6bcf8514977ea8d0b017baaeb [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
Jiri Broulikd33c8dd2017-04-27 17:18:26 +020023 private_key:
24 type: rsa
25 key: ${_param:root_private_key}
Filip Pytlouna6d4a782015-10-06 16:28:32 +020026 user: ${linux:system:user:root}
27
28OpenSSH client with individual private key and known host
29
30.. code-block:: yaml
31
32 openssh:
33 client:
34 enabled: true
35 user:
36 root:
37 enabled: true
38 user: ${linux:system:user:root}
39 known_hosts:
40 - name: repo.domain.com
41 type: rsa
42 fingerprint: dd:fa:e8:68:b1:ea:ea:a0:63:f1:5a:55:48:e1:7e:37
43
44OpenSSH server
45--------------
46
47OpenSSH server with configuration parameters
48
49.. code-block:: yaml
50
51 openssh:
52 server:
53 enabled: true
54 permit_root_login: true
55 public_key_auth: true
56 password_auth: true
57 host_auth: true
58 banner: Welcome to server!
Jiri Konecny2a274232016-02-16 15:49:35 +010059 bind:
60 address: 0.0.0.0
Jiri Konecnydf550532016-02-17 11:48:47 +010061 port: 22
Filip Pytlouna6d4a782015-10-06 16:28:32 +020062
Filip Pytloun2d3c8032016-03-11 16:40:20 +010063OpenSSH server with auth keys for users.
64Parameter ``purge`` will ensure exact authorized_keys contents co undefined
65keys will be removed.
Filip Pytlouna6d4a782015-10-06 16:28:32 +020066
67.. code-block:: yaml
68
69 openssh:
70 server:
71 enabled: true
Jiri Konecny2a274232016-02-16 15:49:35 +010072 bind:
73 address: 0.0.0.0
Jiri Konecnydf550532016-02-17 11:48:47 +010074 port: 22
Filip Pytlouna6d4a782015-10-06 16:28:32 +020075 ...
76 user:
77 newt:
78 enabled: true
79 user: ${linux:system:user:newt}
80 public_keys:
81 - ${public_keys:newt}
82 root:
83 enabled: true
Filip Pytloun2d3c8032016-03-11 16:40:20 +010084 purge: true
Filip Pytlouna6d4a782015-10-06 16:28:32 +020085 user: ${linux:system:user:root}
86 public_keys:
87 - ${public_keys:newt}
88
Filip Pytlouna12db4a2016-12-02 13:21:02 +010089You can also bind openssh on multiple addresses and ports:
90
91.. code-block:: yaml
92
93 openssh:
94 server:
95 enabled: true
96 binds:
97 - address: 127.0.0.1
98 port: 22
99 - address: 192.168.1.1
100 port: 2222
101
Filip Pytloundaf8f982015-12-16 11:55:34 +0100102OpenSSH server for use with FreeIPA
103
104.. code-block:: yaml
105
106 openssh:
107 server:
108 enabled: true
Jiri Konecny2a274232016-02-16 15:49:35 +0100109 bind:
110 address: 0.0.0.0
Jiri Konecnydf550532016-02-17 11:48:47 +0100111 port: 22
Filip Pytloundaf8f982015-12-16 11:55:34 +0100112 public_key_auth: true
113 authorized_keys_command:
114 command: /usr/bin/sss_ssh_authorizedkeys
115 user: nobody
116
Filip Pytlouna6d4a782015-10-06 16:28:32 +0200117Read more
118=========
119
120* http://www.openssh.org/manual.html
121* https://help.ubuntu.com/community/SSH/OpenSSH/Configuring
122* http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
123* http://www.zeitoun.net/articles/ssh-through-http-proxy/start
Filip Pytloun0e139062017-02-02 13:02:03 +0100124
125Documentation and Bugs
126======================
127
128To learn how to install and update salt-formulas, consult the documentation
129available online at:
130
131 http://salt-formulas.readthedocs.io/
132
133In the unfortunate event that bugs are discovered, they should be reported to
134the appropriate issue tracker. Use Github issue tracker for specific salt
135formula:
136
137 https://github.com/salt-formulas/salt-formula-openssh/issues
138
139For feature requests, bug reports or blueprints affecting entire ecosystem,
140use Launchpad salt-formulas project:
141
142 https://launchpad.net/salt-formulas
143
144You can also join salt-formulas-users team and subscribe to mailing list:
145
146 https://launchpad.net/~salt-formulas-users
147
148Developers wishing to work on the salt-formulas projects should always base
149their work on master branch and submit pull request against specific formula.
150
151 https://github.com/salt-formulas/salt-formula-openssh
152
153Any questions or feedback is always welcome so feel free to join our IRC
154channel:
155
156 #salt-formulas @ irc.freenode.net