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

From: Frank (fm122_at_arcor.de)
Date: 06/29/05

  • Next message: Neil W Rickert: "Re: how to scp when no shell for user in /etc/passwd"
    Date: Wed, 29 Jun 2005 16:22:14 +0200
    
    

    Hello

    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
    192.168.1.5 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 ?

    Frank


  • Next message: Neil W Rickert: "Re: how to scp when no shell for user in /etc/passwd"