Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Invalid packet exception ssh'ing as root when "Please login as the ubuntu user rather than root user" #75
I have an ubuntu VM that I'm trying to use with the following code:
It gives me the error:
Trying to ssh or scp to the machine at the command line with:
It works when I ssh in as:
Is there some different behaviour of the ssh protocol in this situation?
To get a suitable VM to reproduce, the jclouds code in  gives the error, as discussed in  and .
For the benefit of anyone searching for more information on this....
This link explains what's going on in openssh sftp: http://www.snailbook.com/faq/sftp-corruption.auto.html
The problem here is similar to if the underlying ssh command causes stdout (e.g. due to system or per-user shell startup files on the server). The text pollutes the protocol stream between scp2/sftp and sftp-server. The first four bytes of the text gets interpreted as a 32-bit packet length.