set sshkey
To specify an SSH key that allows access without a password, use the
set sshkey
command.
set sshkey
[
none
|
user_ssh_key
]
Syntax Description
(Optional) Enter the
none
keyword to clear the user’s SSH public key.
none
(Optional) Enter or paste the user’s public SSH key.
user_ssh_key
Command Modes
Local user mode
Command History
Modification
Release
Command added.
1.1(1)
Usage Guidelines
If you press
Enter
after entering
set sshkey
, you are prompted to provide the SSH key, one line at a time.
Enter ENDOFBUF to finish. Press Ctrl-C to abort.
Example
This example shows how to specify a public SSH key for the current local user:
FP9300-A /security/local-user #
set sshkey
"ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEAuo9VQ2CmWBI9/S1f30klCWjnV3lgdXMzO0WUl5iPw85NFuNmHcb4K
iaQB8X/PDdmtlxQk8f4VcOelBxlsGk5luq5ls1ob1VOIEwcKEL/h5lrdbNlI8y3SS9I/gGiBZ9ARlop9LDpD
m8HPh2LOgyH7Ei1MI8="
FP9300-A /security/local-user* #
commit-buffer
FP9300-A /security/local-user #
Related Commands
Description
Command
Creates a new local-user account.
create local-user
Specifies a password for a user account.
set password
Cisco Firepower 4100/9300 FXOS Command Reference
226
S Commands
set sshkey
Summary of Contents for Firepower 4100 Series
Page 4: ...Cisco Firepower 4100 9300 FXOS Command Reference 2 About the FXOS CLI Command Reference Guide ...
Page 25: ...P A R T I A R Commands A C Commands on page 25 D R Commands on page 81 ...
Page 26: ......
Page 122: ...Cisco Firepower 4100 9300 FXOS Command Reference 120 A R Commands return ...
Page 124: ......
Page 236: ...Cisco Firepower 4100 9300 FXOS Command Reference 234 S Commands set vlan ...
Page 379: ...P A R T III T W Commands T W Commands on page 379 ...
Page 380: ......
Page 390: ...Cisco Firepower 4100 9300 FXOS Command Reference 388 T W Commands where ...
Page 391: ...P A R T IV connect shell Commands connect shell Commands on page 391 ...
Page 392: ......