I was connected to an ubuntu machine and instead of typing exit to logout, I killed the ssh process by its PID:
Now, when I try to connect again to the ubuntu machine, I get the following error message:
Connection closed by xx.xxx.xxx.xx port 22
Where the x represent the machine's address. Did I do something wrong? Why can't I connect to the machine anymore? Note that I am writing a bash script that connects to the server, runs some commands and then terminates the connection to the server, so that's why I killed the ssh process instead of manually logging out.
PS: I'm using a Mac.