I directly start a remote script/command on an Ubuntu server with the following command:
ssh me@server 'nano my_file.txt'
However, this throws an error:
Error opening terminal: unknown.
Another example, calling a remote script which contains the
nano command from above gives the same error.
ssh me@server 'open_nano.sh'
When I do
ssh me@server 'echo something', I get
something as expected.
What is wrong?