I'm using an instance of Ubuntu 22.04.1 LTS via AWS, having enabled ports 22 and 443 in Ubuntu via ufw, and I'm using a Security Group with those same ports enabled.
Although I'm able to connect via SSH using a .cer
key file, when I attempt to connect via SFTP with the same credentials I get the message:
Credentials were not accepted by the server
I'm using Transmit for Mac, and having built environments using Ubuntu before with the same type of configuration (.cer
key file and so on), this problem is new to me.
Some recommend installing vsftpd, but I'd prefer not installing and configuring anything until I know for certain I need to, and this isn't something fixable with what I have.
I found an answer here in Ask Ubuntu and I was wondering if this is a possible fix?
I ran: systemctl status sshd
and found the following:
error: maximum authentication attempts exceeded for ubuntu from [IP redacted] port 50773 ssh2 [preauth]
-v
option to see what happens.ssh
andsftp
? Or you can try filezilla-project.org/download.php?platform=osxsftp -v ~/.ssh/[key-file].cer ubuntu@[IP address]
and got:OpenSSH_7.8p1, LibreSSL 2.6.2 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug1: Connecting to /users/macbookpro/.ssh/[key-file].cer port 22. ssh: Could not resolve hostname /users/macbookpro/.ssh/[key-file].cer: nodename nor servname provided, or not known Connection closed
-i
in front of the path to the cert is quite a simple instruction imho, or check the man-page which says[-i identity_file]
. --->sftp -v -i ~/.ssh/[key-file].cer ubuntu@[IP address]