[pisa-src] Re: r1084 - trunk/tools

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Fri, 9 Oct 2009 20:05:16 +0200

On Fri, Oct 09, 2009 at 06:40:24PM +0200, René Hummen wrote:

> -# Get files
> -# FIXME not sure if authentication works like this at all and even if it 
> does,
> -#       we should still use PK authentication instead
> -echo $PASS | scp $REMOTE_FILES $LOCAL_DIR
> +# check for ssh public key
> +if [ "$PK" = "" ] || [ ! -e "$HOME/.ssh/$PK" ]; then
> +    echo "No public key found. This will be a real pain in the a**!!!"
> +else
> +     echo "public key found: "$PK;
> +     PK_OPTION="-i "$PK
> +fi

What about the agent forwarding case? You don't have to have a public key in a
file to get access without entering a password.

-- 
Thomas Jansen, "Mithi" --- mithi@xxxxxxxxx
GPG 9D5C682B, feel free to sign or encrypt your mail

Other related posts: