Why can’t I save a file after editing in Nano through SSH?

1

I created Raspbian server and connected to it with SSH from my machine. When I try to modify the file using Nano, I can not get past “File Name to Write prompt.

Where I get stuck

I have tried using nano filename and also sudo nano filename and both times it will not let me save file. I only hear ding on my machine when I hit Enter. Only option I can do at that point is Ctrl+C to cancel and exit without saving.

Any suggestions on what I could be doing wrong?

Vladimir Oselsky

Posted 2017-12-29T05:04:47.873

Reputation: 695

2

Well, attempting to use sudo in a case like this is ridiculous since if you can get onto a server and run nano you should be able to save it as a normal user. My guess is there is some Terminal emulation issue happening. Either the Terminal software you are using to connect to the server is off, or the SSH server on the remote server is off. Look here for some insight; might be a UTF-8 issue.

– JakeGould – 2017-12-29T05:37:22.943

1I have not resolved issue with my system, however, I was able to connect from different system using different SSH client and it worked without any issues. My guess there is problem with SSH client and some setting on raspberry pi that prevented me from saving it. Will try some stuff in the article later to see if it is related to UTF-8 – Vladimir Oselsky – 2017-12-29T19:26:31.910

Good to hear some progress! Posted my comment as an answer. If it has helped you with your issue, please be sure to upvote it. And if it is the answer that solved your problem, please be sure to check it off as such. – JakeGould – 2017-12-29T19:32:50.287

Oh! Another idea: When you login to your Raspberry Pi, type in the command screen; it’s a Terminal “windowing” setup. It basically allows you to open another session within a Terminal session. Once you are in screen then try using Nano as described and see if that works. Since screen is a Terminal emulator within a Terminal, it could potentially smooth over whatever issues you are experiencing and allow you to interact with Nano as expected. – JakeGould – 2017-12-29T19:53:51.517

Answers

1

I have tried using nano filename and also sudo nano filename and both times it will not let me save file. I only hear ding on my machine when I hit Enter.

Well, attempting to use sudo in a case like this is ridiculous since if you can get onto a server and run nano you should be able to save it as a normal user.

My guess is there is some Terminal emulation issue happening. Either the configuration of the Terminal software you are using to connect to the server is not exactly correct, or the SSH server on the remote server has configuration issues as well. Might be a UTF-8 issue so look here for some insight. Or perhaps this is a locale setting issue as explained here.

JakeGould

Posted 2017-12-29T05:04:47.873

Reputation: 38 217