I'm SSHing a server (I'm on cygwin using openSSH), and I went into authorized_keys and modified the file as follows: ssh-rsa [key] to command="echo Working" ssh-rsa [key]
Now when I connect to the server I get the output working but then right after that I get "Connection to [server name] closed."
Why does the connection close? Did I do something wrong, or does the server somehow not allow forced commands?