how to scp when no shell for user in /etc/passwd

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

want to transfer a file from boxA to boxB.

Usually no problem with
frank@boxA:frank>  scp  myfile  bob@boxB:/tmp/bla3

internally this is:
    /usr/bin/ssh -x -oForwardAgent no -oClearAllForwardings yes -lbob scp -t /tmp/bla3

   meaning  that these 3 steps are processed:
    - login to boxB
    - execute scp -t ....   via shell
    - logout

But in my situation I have a custom program instead of /bin/bash
in the /etc/passwd file on boxB

So instead of the shell the custom program on boxB is called
and scp does not work.

Had a look at man ssh and man scp, but did not find something
useful for this situation.
Any ideas how to solve this without changes in boxB ?


Re: how to scp when no shell for user in /etc/passwd

Quoted text here. Click to load it

Can't be done, unless the custom shell allows it.

Site Timeline