ssh and Miscl server related issues
Hi There
I have a server running on Ubuntu and I am having 2 problems: 1)SSH-KEYGEN related-> I have several computers and I ssh into each, so I initially set up keyless connection via the following commands (more or less) ssh-keygen -t rsa scp id_rsa.pub user@host: #remote computer touch .ssh/authorized_keys chmod 600 .ssh/authorized_keys cat id_rsa.pub >>.ssh/authorized_keys everything works fine at first when, for example, connecting computer A to computer B. And it still works when connecting computer B to computer A. But when I introduce computer C, all of a sudden computer B gets fussy and no longer does keyless connections. Or if I have multiple users on computer A, lets call them A1-A9, then only A1 accepts keyless connections. My question is this: what is the rational between allowing keyless connection for some, but not all computers and/or users? 2) Tab related: when I create additional users, I can no longer use <tab> to complete a file or command name. It's like when one is in sftp, and the tab button actually inserts a full tab. Why does this occur any help would be appreciated |
Quote:
Code:
ssh-rsa uhsdrhtishiurth....z87e4z568v87z USERA1@computerB |
As far as your second question is concerned:
|
Quote:
|
Can you post your sshd cfg and the relevant line(s) of /var/log/message or /var/log/secure or /var/log/audit.
One of those should log an error msg when you try to get in & can't. Also, try adding 1, 2 or 3 -v to the ssh cmd eg ssh -v user@target |
You only execute
Code:
ssh-keygen -t rsa E.g. once passwordless login is set up from compA to compB you only copy the key to from compA to compC without generating it again. Code:
scp id_rsa.pub user@host: It doesn't stop working from A to B 'after a while' but exactly when you re-generate id_rsa.pub. Sorry I was a little un-precise in my first post. |
Quote:
Here is the sshd config file: Code:
# Package generated configuration file Code:
OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009 |
I don't have a /var/log/message or /var/log/audit file, so I just included the /var/log/secure file. also it was too long, so I had to only post the last few lines:
Code:
Nov 5 00:12:06 MacbookPro com.apple.SecurityServer[23]: Succeeded authorizing right 'system.burn' by client '/Applications/Utilities/Disk Utility.app' for authorization created by '/Applications/Utilities/Disk Utility.app' |
Quote:
|
I found a solution to this problem here:
https://bugs.launchpad.net/ubuntu/+s...ng/+bug/201786 I still don't know what the problem is, but it can be fixed by issuing the following command ssh-add |
All times are GMT -5. The time now is 02:29 AM. |