HD Install :: how to enable remote ssh login on frugal



Hi ,

i have a frugal install of dsl. i start ssh with boot options but i need to be able to login with ssh remotely over the internet.

so far i have done this by issuing "passwd root" and change the root password on the actual pc itself and then login remotely.

is there any way i can change the password using a script in .xinitrc so that i can login with ssh without having to first change the password manually on the pc itself.




thanks in advance.

See backup/restore on /etc/passwd and /etc/shadow afaik.
restoring /etc/shadow after setting a root password is sufficient for a ssh connection.
Hi Mikshaw,

as advised i included /etc/shadow in the .filetool.lst on my home directory which is on a usb drive. after booting it doesnt seem to restore it automatically. do i have to backup first with backup/ restore? when i attempted bakcup it said /dev/sda1 "invalid device" anyway. i also tried /mnt/sda1
and /dev/sda.

my bootoption is home=sda1. do i also need restore=sda1 ?

dsl does run the .xinitrc script on the usb where i have comented out dillo. so i dont get dillo on bootup.


thanks.

You do need to set up a writeable drive before the backup will work. The last time I checked, the syntax was simply "sda1" without the "/dev/" part.

As far as I know you don't need to specify a restore partition on the boot line unless you have multiple partitions containing a backup.tar.gz file. DSL should scan the available partitions and choose the first backup.tar.gz it finds.

The .xinitrc script is persistent because you also use the home= boot option. This does not have anything to do with the backup/restore process.

Next Page...
original here.