I am having a problem when trying to connect to my raspberry pi from my ubuntu 18.04 machine. When I type ssh user@ip_adress
I get this output: Connection closed by (ip adress) port 22
. SSH is enabled on the raspberry pi. When I am on my raspberry pi, I can connect to the ubuntu machine without any problem.
Any ideas about what might be preventing me from using SSH to connect to the Raspberry Pi?