I'm following this tutorial SSH Tutorial for Linux
I've manually transfered the public key to the remote server and I ran these commands also because it wasn't asking me for my passphrase.
chmod 700 ~/.ssh &
chmod 600 ~/.ssh/authorized_keys
But still it doesn't ask me for my passphrase. I tried the newer automatic way to install the public key
ssh-copy-id -p 2222 email@example.com and got this error message:
Bad port 'umask 077; test -d ~/.ssh || mkdir ~/.ssh ; cat >> ~/.ssh/authorized_keys && (test -x /sbin/restorecon && /sbin/restorecon ~/.ssh ~/.ssh/authorized_keys >/dev/null 2>&1 || true)'
Is this error because I've already transferred it manually?
ssh login with
-v these are the mentions of
debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering DSA public key: /home/localusername/.ssh/id_dsa debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Trying private key: /home/localusername/.ssh/id_rsa debug1: Trying private key: /home/localusername/.ssh/id_ecdsa debug1: Next authentication method: keyboard-interactive
I'll note this is prior to logging in.