On 4/6/2006 1:06 AM, Matt Johnston wrote:

On Wed, Apr 05, 2006 at 11:45:10PM -0400, David George wrote:
Using dbclient 0.48.1 on the client attempting to forward a local port to dropbear server 0.48.1 on another machine, how do I get the client to go into the background?

<snip>

I'll look at adding this as a feature in a future release,
it should bfairly straightforward. Running dbclient with
a -T option (disabling ttys) and & at the end seems to work
for now (as long as you have a public key). Alternatively,
you should be able to run with -T but without the &, enter
your password, then ctrl-z, "bg".

<more snipping>

Generate a key with

dropbearkey -t rsa -f ~/.ssh/dbkey.rsa

on the machine where you run dbclient, then paste the public
key line to ~root/.ssh/authorized_keys on the server
(10.100.1.101).

Run
dbclient -T -i ~/.ssh/dbkey.rsa -L 20001:localhost:10001 [EMAIL PROTECTED] &

and it should work - let me know if it doesn't.
I had tried the -T before and got "-sh: cannot open not a tty: No such file". I just tried it and got the same thing. Now that I am doing the public key correctly (thanks) I am able to do the following and it works:

dbclient -T -i ~/.ssh/dbkey.rsa -L 20001:localhost:10001 [EMAIL PROTECTED] >/dev/null 
2>&1 &

Thank you very much for your help and your very quick response.

--
David



Reply via email to