dev/chroot-test/action/go
changeset 299 f41666a08b87
parent 283 01eca64f77ab
child 311 3cbde66305e4
equal deleted inserted replaced
298:cc4f145a8bc3 299:f41666a08b87
    13 aptitude --allow-untrusted --quiet --without-recommends --assume-yes  install \
    13 aptitude --allow-untrusted --quiet --without-recommends --assume-yes  install \
    14     openssh-server
    14     openssh-server
    15 
    15 
    16 perl -i -pe 's/^Port 22$/Port 2222/' /etc/ssh/sshd_config
    16 perl -i -pe 's/^Port 22$/Port 2222/' /etc/ssh/sshd_config
    17 /etc/init.d/ssh start
    17 /etc/init.d/ssh start
    18 ssh-keyscan -p 2222 localhost > /etc/ssh/ssh_known_hosts
    18 ssh-keyscan -t rsa,dsa,ecdsa -p 2222 localhost > /etc/ssh/ssh_known_hosts
    19 
    19 
    20 . ./install-installables
    20 . ./install-installables
    21 
    21 
    22 for user in test1 test2 ; do
    22 for user in test1 test2 ; do
    23     adduser --gecos $user --disabled-password $user
    23     adduser --gecos $user --disabled-password $user