2018-11-20 09:50:03 +00:00
< %+header%>
< style type = "text/css" >
.cbi-dynlist {
max-width: 100%;
}
2018-11-23 14:10:16 +00:00
.cbi-dynlist .item > small {
display: block;
direction: rtl;
overflow: hidden;
text-align: left;
}
.cbi-dynlist .item > small > code {
direction: ltr;
white-space: nowrap;
unicode-bidi: bidi-override;
}
2018-12-02 16:10:39 +00:00
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.cbi-dynlist .item > small { direction: ltr }
}
2018-11-20 09:50:03 +00:00
< / style >
< div class = "cbi-map" >
< h2 > < %:SSH-Keys%>< / h2 >
< div class = "cbi-section-descr" >
< %_Public keys allow for the passwordless SSH logins with a higher security compared to the use of plain passwords. In order to upload a new key to the device, paste an OpenSSH compatible public key line or drag a < code > .pub< / code > file into the input field.%>
< / div >
< div class = "cbi-section-node" >
< div class = "cbi-dynlist" name = "sshkeys" >
< p class = "spinning" > < %:Loading SSH keys…%>< / p >
< div class = "add-item" ondragover = "dragKey(event)" ondrop = "dropKey(event)" >
2018-11-21 19:04:55 +00:00
< input class = "cbi-input-text" type = "text" placeholder = "<%:Paste or drag SSH key file…%>" onkeydown = "if (event.keyCode === 13) addKey(event)" / >
< button class = "cbi-button" onclick = "addKey(event)" > < %:Add key%>< / button >
2018-11-20 09:50:03 +00:00
< / div >
< / div >
< / div >
< / div >
2018-11-21 19:04:55 +00:00
< script type = "application/javascript" src = "<%=resource%>/view/system/sshkeys.js" > < / script >
2018-11-20 09:50:03 +00:00
< %+footer%>