Ssh just decided to stop working

everything was working fine yesterday and ive spent the whole day trying to make it work. It says downloading VS code server which never finishes and i have an error that says "could not fetch environment.
Can anyone help?
thanks