We have a VM running Linux hosting our SFTP. In the past, I could connect via SSH, but now cannot. I can get to the SFTP web UI, so I know the server/app are running. When connecting via Putty, it says "This service allows sftp connections only" and disconnects the session. When trying directly from the GCP UI, it says I need to open the firewall for incoming to 0.0.0.0:22, however, my CTO can connect via SSH with no issue. My IP address is already in the network tags for the VM. I've given myself Owner permissions at the project level, and it still doesn't connect. Any thoughts?
Hi stevetb13,
Welcome to Google Cloud Community!
It seems like that your SSH access is restricted while SFTP is allowed. Given that your CTO can connect without issue.
Here’s troubleshooting steps:
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
I dug further and figured it out. There's a group called sftpusers that my user account was in, and I guess that was forcing me into sftp, and not allowing ssh. Once I removed myself from the group, I was able to log in normally.