Dear,
kalo misalnya saya buat file install-ssh.sh
---
#!/bin/sh
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
sed -e 's/LoginGraceTime 120/LoginGraceTime 30'/ \
-e 's/PermitRootLogin yes/PermitRootLogin no/' \
-e 's/RSAAuthentication yes/RSAAuthentication no/' \
-e 's/#PasswordAuthentication yes/PasswordAuthentication yes/' \
-e 's/X11Forwarding yes/X11Forwarding no/' \
-e 's/#MaxStartups 10:30:60/MaxStartups 3:50:10/' \
/etc/ssh/sshd_config > /var/tmp/temp-sshd_config
mv -f /var/tmp/temp-sshd_config /etc/ssh/sshd_config
chmod 644 /etc/ssh/sshd_config
chown 0.0 /etc/ssh/sshd_config
rm -f /var/tmp/temp-sshd_config
---
terus pengen nambah, misalnya:
...
AllowUsers binfalse
AllowGroups sshusers
dll
...
tapi maunya 2 baris tersebut di atas dimasukkan ke file "sshd_config" di
baris tertentu (baris ke -n) kira-kira pake command apa yah?
--
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis