Re: [SLUG] automating bash password entry (SOLVED)

From: Ian Blenke (icblenke@nks.net)
Date: Fri Apr 23 2004 - 12:16:01 EDT


Mike Branda wrote:
> this worked flawlessly Ian. and like a good little understudy, I went
> and looked up all the flags in manpages and variables to understand
> before executing. :^)

Glad to hear it! Quick studies are always the best students ;)

> adminbox$ cd ~/.ssh
> adminbox$ ssh-keygen -t dsa -b 1024 -P '' -f id_dsa
> adminbox$ scp id_dsa.pub root@userbox:.ssh/authorized_keys
>
>
> side note....can scp be used for any file anywhere??

scp can be used for any file, yes - what do you mean by anywhere?

Once you get used to ssh, you should really look into rsync for copying
file trees between machines:

        $ rsync -SHPaxv /localdir/ root@userbox:/remotedir/

It makes a perfect copy, every time, with a minimum of network bandwidth
used (sliding checksums at the block level for changed files).

> oh, more kudos to Ian, the Nvidia OEM driver solved the shutdown hazy
> framebuffer issues on my laptop

Glad to hear it. Thought that might fix it. Now you have 3d hardware
accelleration as well :)

> and the reason that the gid and uid
> options for samba didn't get me anywhere is that samba would not unmount
> for me to remount with the flagged options. it kept complaining of
> being busy even though, to my knowledge, all visible processes using it
> had been shut down. after a system restart, the options worked great!!

To find what processes are using a mountpoint, use fuser or lsof:

        $ fuser -avm /mountpoint
or
        $ lsof -n | grep /mountpoint

-- 
- Ian C. Blenke - Director of Service Delivery <icblenke@nks.net>
(This message bound by the following:
http://www.nks.net/email_disclaimer.html)
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:44:21 EDT