View Single Post
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#10
No it won't create a problem to put a password for user.

And if you don't like the dance, there is a usefull linux script ssh-copy-id

PHP Code:
ID_FILE="${HOME}/.ssh/id_rsa.pub"

if [ "-i" "$1" ]; then
  shift
  
# check if we have 2 parameters left, if so the first is the new ID file
  
if [ -"$2" ]; then
    
if expr "$1" ".*\.pub" >/dev/nullthen
      ID_FILE
="$1"
    
else
      
ID_FILE="$1.pub"
    
fi
    shift         
# and this should leave $1 as the target name
  
fi
else
  if [ 
x$SSH_AUTH_SOCK != ] && ssh-add ->/dev/null 2>&1then
    GET_ID
="$GET_ID ssh-add -L"
  
fi
fi

if [ -"`eval $GET_ID`" ] && [ -"${ID_FILE}] ; then
  GET_ID
="cat ${ID_FILE}"
fi

if [ -"`eval $GET_ID`" ]; then
  
echo "$0: ERROR: No identities found" >&2
  
exit 1
fi

if [ "$#" -lt 1 ] || [ "$1" "-h" ] || [ "$1" "--help" ]; then
  
echo "Usage: $0 [-i [identity_file]] [user@]machine" >&2
  
exit 1
fi

{ eval "$GET_ID; } | ssh $"umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 
From a linux (or cygwin in windows) to the device:
ssh user@n800
enter the password

And that's it, it won't ever ask you for a password anymore.

For this you will need an ssh-agent (started by common session manager like kdm, gdm)
And enter once the passphrase for your keyring using ssh-add.
On the client, to create your keyring in .ssh/ (only needed once)
ssh-keygen

Last edited by free; 2008-01-30 at 19:39.