HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #442

Ticket #442: sshd_keymaker.sh.diff

File sshd_keymaker.sh.diff, 931 bytes (added by mmu_man, 5 years ago)
  • sshd_keymaker.sh

    old new  
    11#!/bin/sh 
    22 
     3_progress () { 
     4        notify --type progress --app ssh-keygen \ 
     5                --icon /boot/system/kernel_x86 \ 
     6                --messageID $0_$$ \ 
     7                --title "Generating ssh keys..." \ 
     8                --progress "$1" "$2" >/dev/null 
     9} 
     10 
    311# generate SSH host keys 
    412 
    513SETTINGSSSHDIR=`finddir B_COMMON_SETTINGS_DIRECTORY`/ssh 
    … …  
    715 
    816hostKeyDir=${SETTINGSSSHDIR} 
    917 
     18_progress 0.0 "rsa1" 
    1019if [ ! -f "$hostKeyDir/ssh_host_key" ] ; then 
    1120        ssh-keygen -t rsa1 -f "$hostKeyDir/ssh_host_key" -N "" 
    1221fi 
    1322 
     23_progress 0.3 "dsa" 
    1424if [ ! -f "$hostKeyDir/ssh_host_dsa_key" ] ; then 
    1525        ssh-keygen -t dsa -f "$hostKeyDir/ssh_host_dsa_key" -N "" 
    1626fi 
    1727 
     28_progress 0.6 "rsa" 
    1829if [ ! -f "$hostKeyDir/ssh_host_rsa_key" ] ; then 
    1930        ssh-keygen -t rsa -f "$hostKeyDir/ssh_host_rsa_key" -N "" 
    2031fi 
     32 
     33_progress 1.0 "" 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/