-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Current Behavior
I can't save the authorized SSH key.
Config applied
admin@r2s:/config/> edit system authentication user admin
admin@r2s:/config/system/authentication/user/admin/> set authorized-key controller
admin@r2s:/config/system/authentication/user/admin/> set authorized-key controller algorithm ssh-rsa
admin@r2s:/config/system/authentication/user/admin/> set authorized-key controller key-data [key]
admin@r2s:/config/system/authentication/user/admin/> commit
admin@r2s:/config/system/authentication/user/admin/> leave
Running config is correct
admin@r2s:/> show running-config
...
"ietf-system:system": {
"hostname": "r2s",
},
"authentication": {
"user": [
{
"name": "admin",
"password": "$factory$",
"authorized-key": [
{
"name": "controller",
"algorithm": "ssh-rsa",
"key-data": [key]
}
],
"infix-system:shell": "bash"
}
]
Config not being applied to startup config
admin@r2s:/> copy running-config startup-config
admin@r2s:/> show startup-config
...
"ietf-system:system": {
"hostname": "r2s",
},
"authentication": {
"user": [
{
"name": "admin",
"password": "$factory$",
"infix-system:shell": "bash"
}
]
},
...
Workaround
Setting the hostname saves the SSH key
admin@r2s:/config/> set system hostname r2s-1
admin@r2s:/config/> commit
admin@r2s-1:/config/> exit
admin@r2s-1:/> copy running-config startup-config
...
"ietf-system:system": {
"hostname": "r2s-1",
},
"authentication": {
"user": [
{
"name": "admin",
"password": "$factory$",
"authorized-key": [
{
"name": "controller",
"algorithm": "ssh-rsa",
"key-data": [key]
}
],
"infix-system:shell": "bash"
}
]
Expected Behavior
admin@r2s:/> show startup-config
...
"ietf-system:system": {
"hostname": "r2s-1",
},
"authentication": {
"user": [
{
"name": "admin",
"password": "$factory$",
"authorized-key": [
{
"name": "controller",
"algorithm": "ssh-rsa",
"key-data": [key]
}
],
"infix-system:shell": "bash"
}
]
Steps To Reproduce
- Configure SSH key
- copy running config to startup config
Not applied - set hostname
- copy running config to startup config
SSH keys applied
Additional information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done