gravitational / teleport

The easiest, and most secure way to access and protect all of your infrastructure.
https://goteleport.com
GNU Affero General Public License v3.0
17.41k stars 1.74k forks source link

I can't use tsh scp "error receiving version packet from serve" #44266

Closed tnubeo1111 closed 2 months ago

tnubeo1111 commented 2 months ago

Expected behavior:

I use the following command: tsh scp ./test/note.txt thalt@hni--master-101.test.vn:/home/vcr/ssl, then I assume the note.txt file can be copied to the server: hni--master-101.test.vn

Current behavior:

But when I use the command tsh scp ./test/note.txt thalt@hni--master-101.test.vn:/home/vcr/ssl it gives error "ERROR: error receiving version package from server: machine Unexpected server closed connection: Unexpected EOF"

Bug details:

tnubeo1111 commented 2 months ago

Sorry, I have fixed it, maybe my server has some permissions blocked.

beaudmitchell commented 3 weeks ago

Noticed this happening when tsh on my machine was v15, but the Teleport server of my organization had upgraded to v16. Installing the latest version of tsh so client and server's main versions matched resolved this for me. Not certain if that was your issue as well, but throwing this out there in case someone else runs across the issue too.