updated config script
This commit is contained in:
@@ -283,12 +283,12 @@ if [ $isInFile -eq 0 ]
|
||||
mv /home/akanealw/.ssh/known_hosts /home/akanealw/.ssh/known_hosts.old > /dev/null 2>&1
|
||||
echo "" >> /home/akanealw/.ssh/config
|
||||
echo "" >> /home/akanealw/.ssh/config
|
||||
echo "Port 22" >> /home/akanealw/.ssh/config
|
||||
echo "Host *-root" >> /home/akanealw/.ssh/config
|
||||
echo "User root" >> /home/akanealw/.ssh/config
|
||||
echo "IdentityFile /root/.ssh/server-root" >> /home/akanealw/.ssh/config
|
||||
echo "" >> /home/akanealw/.ssh/config
|
||||
echo "Host *" >> /home/akanealw/.ssh/config
|
||||
echo "Port 22" >> /home/akanealw/.ssh/config
|
||||
echo "User akanealw" >> /home/akanealw/.ssh/config
|
||||
echo "IdentityFile /home/akanealw/.ssh/server-akanealw" >> /home/akanealw/.ssh/config
|
||||
chown akanealw:akanealw /home/akanealw/.ssh/*
|
||||
@@ -303,12 +303,12 @@ if [ $isInFile -eq 0 ]
|
||||
mv /root/.ssh/known_hosts /root/.ssh/known_hosts.old > /dev/null 2>&1
|
||||
echo "" >> /root/.ssh/config
|
||||
echo "" >> /root/.ssh/config
|
||||
echo "Port 22" >> /root/.ssh/config
|
||||
echo "Host *-root" >> /root/.ssh/config
|
||||
echo "User root" >> /root/.ssh/config
|
||||
echo "IdentityFile /root/.ssh/server-root" >> /root/.ssh/config
|
||||
echo "" >> /root/.ssh/config
|
||||
echo "Host *" >> /root/.ssh/config
|
||||
echo "Port 22" >> /root/.ssh/config
|
||||
echo "User akanealw" >> /root/.ssh/config
|
||||
echo "IdentityFile /home/akanealw/.ssh/server-akanealw" >> /root/.ssh/config
|
||||
chmod 600 /root/.ssh/*
|
||||
|
||||
Reference in New Issue
Block a user