equal
deleted
inserted
replaced
16 my $home_dir = (getpwuid $effective_uid)[7]; |
16 my $home_dir = (getpwuid $effective_uid)[7]; |
17 my $opt_update = 1; |
17 my $opt_update = 1; |
18 my $opt_help = 0; |
18 my $opt_help = 0; |
19 my $opt_man = 0; |
19 my $opt_man = 0; |
20 my $opt_keys_dir = "/usr/share/schlittermann-ssh-keys"; |
20 my $opt_keys_dir = "/usr/share/schlittermann-ssh-keys"; |
21 my $opt_force = 0; |
21 my $opt_force = 1; |
22 |
22 |
23 my $SSHD_CONF = "/etc/ssh/sshd_config"; |
23 my $SSHD_CONF = "/etc/ssh/sshd_config"; |
24 my $KEYS_DIR = undef; # set later |
24 my $KEYS_DIR = undef; # set later |
25 my $SSH_DIR = "$home_dir/.ssh"; |
25 my $SSH_DIR = "$home_dir/.ssh"; |
26 my $AUTH_KEYS = "$SSH_DIR/authorized_keys"; |
26 my $AUTH_KEYS = "$SSH_DIR/authorized_keys"; |
154 |
154 |
155 Options: |
155 Options: |
156 -u, --update update the authorized_keys file |
156 -u, --update update the authorized_keys file |
157 -h, --help display this help and exit |
157 -h, --help display this help and exit |
158 -m, --man display full documentation |
158 -m, --man display full documentation |
159 -f, --force overwriting backup file |
159 -f, --force overwriting backup file (default: force) |
160 --keys-dir the default keys |
160 --keys-dir the default keys |
161 |
161 |
162 =head1 DESCRIPION |
162 =head1 DESCRIPION |
163 |
163 |
164 B<update-schlittermann-ssh-keys> make a backup from F<~/.ssh/authorized_keys> and generate a new file which |
164 B<update-schlittermann-ssh-keys> make a backup from F<~/.ssh/authorized_keys> and generate a new file which |
178 |
178 |
179 import the public ssh keys from the Schlittermann technician and the keys from the F<~/.ssh/authorized_keys.local> file |
179 import the public ssh keys from the Schlittermann technician and the keys from the F<~/.ssh/authorized_keys.local> file |
180 |
180 |
181 =item B<-f, --force> |
181 =item B<-f, --force> |
182 |
182 |
183 force some actions (e.g. overwriting backup file) (default: 0) |
183 force some actions (e.g. overwriting backup file) (default: ON) |
184 |
184 |
185 =item B<--keys-dir> I<dir> |
185 =item B<--keys-dir> I<dir> |
186 |
186 |
187 The directory where the "default" keys are stored |
187 The directory where the "default" keys are stored |
188 (default: F</usr/share/schlittermann-ssh-keys/>) |
188 (default: F</usr/share/schlittermann-ssh-keys/>) |