|
Post by dbridges on May 31, 2007 13:02:42 GMT 7
Hi, I changed sshd_config "PermitRootLogint" to "no", but how can I change back to "yes". Because I cannot login as root now. You could write yourself a meta script to undo the change or you could try this firmware patch Edit: I personally recommend the meta script. It's good practice if you're planning on playing with config files.
|
|
|
Post by siukee on May 31, 2007 16:51:52 GMT 7
I tried the firmware patch, but prompted msg "System Firmware Upgrade Fail"...
|
|
|
Post by stevenh on May 31, 2007 17:46:47 GMT 7
Can you not uninstall the ssh module and then re-install it?
|
|
|
Post by getmythe on Jun 1, 2007 0:11:11 GMT 7
won't work as the configuration file is not touched in the process. Best to follow dbridges advice and write a META script for this specific task. As root logins are allowed by default, try this piece of code
sed -i 's/^PermitRootLogin/#PermitRootLogin/' /etc/ssh/sshd_config
|
|
|
Post by siukee on Jun 1, 2007 12:51:41 GMT 7
Can I login in as superuser at ssh? cannot use su command
|
|
|
Post by stevenh on Jun 1, 2007 15:53:45 GMT 7
you can login as 'root' using ssh, if user support was added, then you can also login with any other registered user on the system...
|
|
|
Post by siukee on Jun 1, 2007 18:46:29 GMT 7
I changed sshd_config "PermitRootLogint" to "no", so I cannot login as root now.
|
|
|
Post by stevenh on Jun 1, 2007 20:04:12 GMT 7
then you'll have to use the metascript that getmythe suggested, then either stop and start the ssh module, or reboot the box.
|
|
|
Post by siukee on Jun 1, 2007 21:32:09 GMT 7
Anyone can tell me what is metascript? There are any website about it?
|
|
|
Post by stevenh on Jun 1, 2007 23:04:45 GMT 7
PM sent
|
|