You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.
niusmallnan
changed the title
ros config get ssh_authorized_keys folding display
Unreasonable line break in ros config get ssh_authorized_keysNov 23, 2018
In our project, we use the yaml.Marshal function to generates valid YAML, it's a third party library go-yaml.
Refer to the YAML spec section 8.1.3 from http://yaml.org/spec/1.2/spec.html, which says Folding allows long lines to be broken anywhere a single space character separates two non-space characters.
So the yaml.Marshal function splits long string(>80-character) values on to multiple lines, but 80 length is hard code now. The go-yaml v3 will update something about this, please check this PR (go-yaml/yaml#329).
RancherOS Version: (ros os version) version v1.4.2 from os image rancher/os:v1.4.2
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
When I run
ros config get ssh_authorized_keys
, the result of ssh_authorized_keys will be displayed in two lines.View
~/.ssh/authorized_keys
is the correct valueThe text was updated successfully, but these errors were encountered: