Hi Guys,
Asking your kind help to solve the issue
connecting to remote server via ssh
Purpose not to use password
Server A (Client) commands used
mkdir -p $HOME/.ssh
chmod 0700 $HOME/.ssh
ssh-keygen -t dsa -f $HOME/.ssh/id_dsa -P ''
copied the public key in server B (Server)
Commands used
mkdir -p $HOME/.ssh
cat id_dsa.pub >> $HOME/.ssh/authorized_keys2
chmod 0600 $HOME/.ssh/authorized_keys2
Now used the below command for ssh
ssh -o 'PasswordAuthentication yes' -o 'PreferredAuthentications publickey' -i $HOME/.ssh/id_dsa Server B
and found the below error
Permission denied (gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive)
I dont have the rights to change in config file
Please suggest how can I login without using password