This question is similiar, but I'm experiencing the reverse scenario. SFTP works but I'm not yet connected using SSH.
I'm using a
config file and I'm able to sftp to remote server.
Local machine is on linux and remote server is CentOS.
sftp foobar_remote config Host foobar_remote HostName foobar.biz Port 2222 User bizz IdentityFile local/bizzbuzz/id_rsa
On my local machine, I'm in the same directory as
ssh -i id_rsa firstname.lastname@example.org
I still get prompted for email@example.com password.
After Responding to Comments
I'm using a different key (id_rsa) now, and I no longer get promted for a password. Now, I get the following response
Welcome to foobar.biz shell request failed on chananel 0