dev/chroot-test/action/go
branchdebian
changeset 313 f597eb3b5aaf
parent 311 3cbde66305e4
child 327 6f2a3f251d3b
equal deleted inserted replaced
294:31d5c6236f71 313:f597eb3b5aaf
    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
    31 su -l -c /action/test2 test2
    31 su -l -c /action/test2 test2
    32 
    32 
    33 /etc/init.d/ssh stop
    33 /etc/init.d/ssh stop
    34 
    34 
    35 #touch results
    35 #touch results
    36