[Info-vax] SSH / SFTP troubles

David Froble davef at tsoft-inc.com
Thu Aug 2 23:35:46 EDT 2012


Jose Baars wrote:
> A few more things to check: 
> 
> 1. With a lot of versions of TCPIP SSH the key files must be in stream_lf 
>    format, to be checked by dir/full, check the following lines in the output:
> ...
> Record format:      Stream_LF, maximum 0 bytes, longest 32767 bytes
> Record attributes:  Carriage return carriage control
> ...
> 
> If that is not the case, convert them to stream_lf format by
> convert/fdl="file;org seq;record;format stream_lf;" <wrongformatfile> <stmlffile>.
> 
> Check the output files again with dir/full, to be sure.
> 
> 
> 2. the keys private and public have to have the following format:
> 
> 
> ---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----
> Subject: josebaars
> Comment: "2048-bit dsa, josebaars at uv, Thu Au\
> g 02 2012 17:20:03"
> P2/56wAAA4IAAAAmZGwtbW9kcHtzaWdue2RzYS1uaXN0LXNoYTF9LGRoe3BsYWlufX0AAA
> ...
> SvvgdR0kUYety1xuWVG5r/XnZfEWXTDUDbYerAr9FC2asAAAAJ9PaGqz4fB2PLuT4spenU
> 4dhbf+nA==
> ---- END SSH2 ENCRYPTED PRIVATE KEY ----
> 
> 
> ---- BEGIN SSH2 PUBLIC KEY ----
> Subject: josebaars
> Comment: "2048-bit dsa, josebaars at uv, Thu Au\
> g 02 2012 17:20:03"
> AAAAB3NzaC1kc3MAAAEBANuAFuqYQJc0VrEYxG++FSzQdHfMfvMEpz/fNFNQsSYxeFa2gB
> RyjLrCLcJ2BuKJe5LfiFCfmxZIvkLcNwyDNxkO2wmziOT/WLcSkJxFDamrF5BTkS7+NGbZ
> ...
> 1Jdh/A3I26AQ7ucGZ1sZP/6j+cL+FMN7j/ziexZRmMLjvYzCPZdyhSSi2MWpkpZG7ZBK++
> B1HSRRh63LXG5ZUbmv9edl8RZdMNQNth6sCv0ULZqw
> ---- END SSH2 PUBLIC KEY ----
> 
> If not, convert them using a ssh-keygen tool on Linux or PuttyGen.
> I didn't check, but last time I looked that wasn't possible with TCPIP
> ssh_keygen.

Yeah, the old brain cells are slow, but sometimes get there ...

I think we ran into a problem with the (I think) comment line being too long and SSH / 
SFTP barfed because of that.  If I'm correct, it was the only difference we could find.



More information about the Info-vax mailing list