You can configure user accounts by using the following methods:
To configure a plain text password for a user account:
- [edit system user JASmith]
- user@host# set authentication plain-text-password
- New password: type password here
- Retype new password: retype password here
Before you configure SSH authentication, obtain the contents of SSH key files. You can copy the contents of an SSH keys file into a CLI session:
- > ssh-keygen
- (provide input)
- > cat ~/.ssh/id_rsa.pub
- user@host# set system login user testuser
authentication ssh-authorized-key “ pasted content of id_rsa.pub ”
For example:
- user@host# set system login user testuser
authentication ssh-authorized-key "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAvSqAWNdMTQJS9eqG1eq
- RANI3ML4hH+u7WX/HP0W82gDSPpjghnt1e5de3D8U
kuIIEUBf1obgy/7AKc98FqAIvVp5onCiMg8ELD6
- RYkgOgo7U6zERB25qy3sK1Rn9NzrB20qLzbvAcZW1
NIePmf1R99d/Rge7kB/5k6fq3NOG0fc= id@server" "ssh-rsa AAAA
B3NzaC1yc2EAAAABIwAAAIEAxlwe9HfZ78vbdfq1+AY0uCF79yGPxgGuw
- GZd9QVdT+dniwGh/4HwLITvKd8SYrhmJsyhz5dWuZm
94JSwQosm9BVhJwREt39NYIkLWOjGIMkk8Cxw4
- TkpFfeIz1cSbeFxtFBFVaBbo4YkEv5ItbuxwvbTWURkvsQa
2VJXAqIs7z8= id2@server2
- eriand" "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAwwOo
UD4m+SazgzF2kRIq5Y2+Ix2zQbCxqBS
- D1rmW92eLPOQIBv/sEy2d8UNeHpoKot9Px8q9ABriOyO
Nc7vqNsSVnAMyicQB786uHoabSErVIYscapT
- YvIGg+olbdhKySbSxOoXMehhgoQS0JZxHCbxsQJip7/7vJ
PCjRGU8Xq0= id@server3" ];