Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: how to enable remote ssh login on frugal, how to enable remote ssh login on frugal< Next Oldest | Next Newest >
manishsadh Offline





Group: Members
Posts: 42
Joined: Jan. 2007
Posted: Feb. 05 2007,03:12 QUOTE

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.
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Feb. 05 2007,03:36 QUOTE

See backup/restore on /etc/passwd and /etc/shadow afaik.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Feb. 05 2007,04:05 QUOTE

restoring /etc/shadow after setting a root password is sufficient for a ssh connection.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
manishsadh Offline





Group: Members
Posts: 42
Joined: Jan. 2007
Posted: Feb. 07 2007,01:29 QUOTE

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.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Feb. 07 2007,02:15 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
9 replies since Feb. 05 2007,03:12 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: how to enable remote ssh login on frugal

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code