Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am hitting a Protocol error while trying to SFTP from one server to another. I have tried to search up Google to no avail. May i know if anyone can help me with this.

rel@kingfisher:/kingfisher_bft/hme/rel>  sftp relst@111.32.171.172
Need basic cursor movement capability, using vt100
error: Could not open connection to `rel@111.32.171.172': Protocol error
share|improve this question

1 Answer 1

The machine you are using to sftp into the remote machine seems to be missing the ncurses libraries. Install them with apt-get install libncurses5 or download them from your distributions web-page.

[ From: http://ftp.vim.org/security/ssh/README.SSH2 ]

If your sftp2 complains something like this: "Need basic cursor movement capability, using vt100", then no library containing tgetent() function was found when you ran ./configure . If you have a Linux system, then that is probably because you don't have either termcap-devel or ncurses-devel packages installed. If you want to get rid of the message, and/or to use some more exotic terminals capabilities, you should install either package. (A good place to look for those is your distribution's web-page.)

share|improve this answer
    
thanks for the insights Stuffy. Could i also mention that the machine that is trying to SFTP to remote machines has no problem with other remote machines as i have tried. But the remote machine having problem is not having any issue accepting SFTP from machine... –  Chin Boon Oct 16 '12 at 8:06
    
Make sure you have the ncurses-libs on both servers. Also, try logging in with another user, and test if you can sftp from the remote server into the "kingfisher" server. And it would be useful to know what distribution you are using. –  Stuffy Oct 16 '12 at 8:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.