Search
SailfishOS Open Build Service
>
Projects
>
home:plfiorini
:
maui:devel
:
x86_64
>
openssh
> _service:gitpkg:sshd-hostkeys
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:gitpkg:sshd-hostkeys of Package openssh
#!/bin/bash make_key() { if [ ! -f /etc/ssh/$1 ]; then echo "Generating $2 key: /etc/ssh/$1" ssh-keygen -q -t $2 -N '' -f /etc/ssh/$1 chmod 600 /etc/ssh/$1 chmod 644 /etc/ssh/$1.pub fi } # make_key ssh_host_key rsa1 make_key ssh_host_rsa_key rsa make_key ssh_host_dsa_key dsa