OpenVZ Forum


Home » General » Support » ssh service wont start - new vps
Re: ssh service wont start - new vps [message #27780 is a reply to message #27774] Wed, 27 February 2008 07:47 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

from /etc/init.d/sshd
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

do_rsa1_keygen() {
        if [ ! -s $RSA1_KEY ]; then
                echo -n $"Generating SSH1 RSA host key: "
                if $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
                        chmod 600 $RSA1_KEY
                        chmod 644 $RSA1_KEY.pub
                        if [ -x /sbin/restorecon ]; then
                            /sbin/restorecon $RSA1_KEY.pub
                        fi
                        success $"RSA1 key generation"
                        echo
                else
                        failure $"RSA1 key generation"
                        echo
                        exit 1
                fi
        fi
}


We can enter the VPS and try to execute the following command inside VPS:
$KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N ''

(with or without -q option) and it will might be possible to observe some more information about any errrors.
 
Read Message
Read Message
Previous Topic: VPSVille
Next Topic: VE Routing issue
Goto Forum:
  


Current Time: Wed Aug 27 03:49:00 GMT 2025

Total time taken to generate the page: 0.08956 seconds