-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathapple_ssh_and_fips.7
More file actions
67 lines (67 loc) · 1.84 KB
/
apple_ssh_and_fips.7
File metadata and controls
67 lines (67 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.\" Copyright (c) 2021-2024 Apple Inc. All rights reserved.
.Dd 8 October, 2024
.Dt apple_ssh_and_fips 7
.Os Darwin
.
.Sh NAME
.Nm apple_ssh_and_fips
.Nd Configuring SSH for FIPS algorithms
.Sh DESCRIPTION
The macOS version of OpenSSH uses Apple’s FIPS Cryptographic Modules for
FIPS 140-2 validated algorithms, automatically without the need for
installation, administration, or configuration. To restrict the SSH
client and server to use
.Em only
FIPS algorithms, customize the configuration as directed below.
.Pp
The configuration files for
.Xr ssh 1
and
.Xr sshd 8
read the algorithm configuration directives from
.Pa /etc/ssh/crypto.conf ,
which should be a symbolic link to either the macOS
default algorithm configuration file
.Pa /etc/ssh/crypto/apple.conf ,
or to the FIPS-only configuration file
.Pa /etc/ssh/crypto/fips.conf .
To choose FIPS algorithms
.Em only ,
update the symbolic
link as follows.
.Bd -literal -offset indent
sudo ln -fs crypto/fips.conf /etc/ssh/crypto.conf
.Ed
.Pp
To return to the default set of algorithms which largely prefer FIPS
algorithms but allow others as well:
.Bd -literal -offset indent
sudo ln -fs crypto/apple.conf /etc/ssh/crypto.conf
.Ed
.Pp
.Sh HISTORY
.Pa /etc/ssh/crypto.conf ,
.Pa /etc/ssh/crypto/apple.conf ,
and
.Pa /etc/ssh/crypto/fips.conf
appeared in macOS 15 Sequoia.
.Sh CAVEATS
When upgrading from a previous version of macOS,
the OpenSSH configuration directory
.Pa /etc/ssh
is preserved.
Thus, when upgrading from versions prior to macOS 15 Sequoia,
the files mentioned in this manual page may not be present.
To reset the OpenSSH configuration to macOS defaults,
run the following command:
.Bd -literal -offset indent
sudo /usr/libexec/reset-ssh-configuration
.Ed
.Pp
.Sy WARNING :
The above command will discard the existing configuration
with the exception of host keys.
.Pp
.Sh SEE ALSO
.Xr ssh 1 ,
.Xr sshd 8