Welcome, Guest
Please Login or Register.    Lost Password?
disable root ssh access Esxi 4.1 (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: disable root ssh access Esxi 4.1
#63
disable root ssh access Esxi 4.1 7 Years, 11 Months ago Karma: 0  
create user:

~ #mkdir /home
~ #new_user=jklaassen
~ #USER_COMMENT=’Jan Klaassen’
~ #useradd -d /home/$NEW_USER -c “$USER_COMMENT” -s /bin/ash -n -P $NEW_USER

Delete user:

~ #userdel jklaassen


Prevent ssh login as root:

edit with vi /etc/inetd.conf
Add the “-w” option to dropbearmulti
The ssh lines of the file “/etc/inetd.conf” should look like this:

ssh stream tcp nowait root /sbin/dropbearmulti dropbear ++min=0,swap,group=shell -w -i -K60
ssh stream tcp6 nowait root /sbin/dropbearmulti dropbear ++min=0,swap,group=shell -w -i -K60


Reload inetd configuration:

~ #kill -HUP `cat /var/run/inetd.pid`
admin (Admin)
Administrator
Posts: 87
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
Go to top