I assume by 'osmc' you mean Opensource Media Center. Is the remote machine set to use port 22 for its SSH server? Is the remote machine's firewall set to allow incoming connections to port 22? Also, might as well confirm the service is running properly
systemctl status ssh
on the server. I'm assuming this OSMC thing is just a Linux distribution of sorts. Not sure what else to suggest, as I'm not familiar with OSMC.
If the server uses a different port, you can specify it with, for example:
I don't use SSH much now, as from for GitHub, so I might be forgetting what all the errors look like, but I am wondering if it's possible that the server requires keys be used instead of password access. I for some reason assumed you haven't set up keys. Are you using keys or passwords? Have you been able to successfully log in at all? You can check the SSH daemon settings on the server by looking at the '/etc/ssh/sshd_config' file.
Hopefully someone more familiar with OSMC can chime in, because that's about all I have!