View previous topic :: View next topic |
Author |
Message |
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Tue Apr 26, 2005 3:15 pm Post subject: SSH connection problem |
|
|
im trying to SSH to another machine outside our LAN and get
Code: | buffer_get: trying to get more bytes 4 than in buffer 0
|
ive been having some problem setting up priv/pub authentication so have screwed something
ive tried editing/moving authorized_keys but that didnt fix it
Anyone know what to delete/change to make it work? _________________ join the optout - http://nhsconfidentiality.org |
|
Back to top |
|
|
apaton n00b
Joined: 12 May 2004 Posts: 10 Location: Brum, UK
|
Posted: Wed Apr 27, 2005 10:10 pm Post subject: Re: SSH connection problem |
|
|
thecooptoo wrote: | im trying to SSH to another machine outside our LAN and get
Code: | buffer_get: trying to get more bytes 4 than in buffer 0
|
ive been having some problem setting up priv/pub authentication so have screwed something
|
Have you been copy & pasting your keys in to the ~/.ssh/authorized_keys file?
Check that the public key is one continuous line and doesn't have a Carriage Return or Newline.
Code: | $ cat ~/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAh84FnKDcTlRmC59iBpwdP7d22u6KoogBDIGYDx
Jo0LteQpo04uwPgJRHavSmzYqud9999BKkI68kN5ElNWbyi9D6HytNVZr7WCIUGMqH9G93dtLZYryK5cS
HwioXxQPjFh/1JUpInqTzbyDK3r46nLBWqlkBVGw73DxPpuaDPwkfkD3u8= ap-laptop
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAyLxflJ8/NFVvUxst95Zz2tA7ty9oysACrN1Do6wWsdqIp
tHep4iCcBL44RRTPCRMeLvKqK/xxegJYiezGOJ6zrUWXItqYpO29OVRjpVdRXudYkkrOwN3xL4D5cu5fB
IQE9vmNruDWvU/r96Eialws2ZyYGsrPn0CTGnawG4lhWMW6qhkM= apaton@gendesk
$ wc -l ~/.ssh/authorized_keys
3 /home/apaton/.ssh/authorized_keys
|
Note "wc -l" only reports three lines and not seven. (counts blank lines too)
HTH
apaton _________________ --
apaton
First UNIX: 1986, AT&T Unix Version 7 on a Digital PDP 11/44 |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Sat Apr 30, 2005 10:06 pm Post subject: |
|
|
ive tried generating a public /private key with putty(ver 0.58) on the windows machine , copied the public key to ~/.ssh/ directory, renamed it authorized_keys, deleted all the extraneous stuff and ensured the authorized_keys file was 1 line (with wc -l authorized_keys) and chmodded it to 600
with the RSA-1 option in putty
I get Code: |
login as: paul
Sent username "paul"
Trying public key authentication.
No passphrase required.
Server refused our public key.
|
with SSH-2 RSA and SSH-2 DSA I get
Code: | login as: paul
Sent username "paul"
Trying public key authentication.
Key is of wrong type (PuTTY SSH-2 private key) |
ive no idea whats going wrong _________________ join the optout - http://nhsconfidentiality.org |
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Sun May 01, 2005 1:11 pm Post subject: |
|
|
try to follow these steps, works for me
http://www.cs.uwaterloo.ca/cscf/howto/ssh/public_key/#putty _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
|
|