06-17-2005
More SSH probs ...
Server 1 SSH Version Sun_SSH_1.0
Server 2 OpenSSH_3.8.1p1
Server 3 OpenSSH_3.8p1
I created the rsa keys on server1. Public and private. I copied the id_rsa.pub file to server2 and server3 and appended this to the authorized_keys file in the .ssh directory on both. (All servers using the root user only)
On server 1
I then type ssh user@server2 and I get logged in with no issue and I dont have to provide a password.
However - from server1
I then type ssh user@server3 and I get an error as follows:
Connection closed by 0.0.0.0
Any ideas?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all
we r using hpUX11.00 9000 sever as oracle 8i db server...
But the problem is we have 4 instances of dbs but upto my knowledge there are only to ports available for TNS listen...
how can i configure or get wht ever it may be the other two ports for tns listener.........
... (2 Replies)
Discussion started by: Prafulla
2 Replies
2. Shell Programming and Scripting
this is my lex file ------------ test.l
%%
printf("%c",yytext+'a'-'A');.ECHO;
how do i compile it
$ lex test.l cc lex.yy.c -o test -ll <------|
|
if this is correct do i add this line--------| @the command line or does it... (0 Replies)
Discussion started by: sinner
0 Replies
3. UNIX for Dummies Questions & Answers
need help....just wanna copy all files with no extensions but with tree-informations to one dir
first I make a new directory with all foldertrees...like
find / -name "*" -type d >a1
sed -e 's/^/new/g' <a1 >b1
mkdir -p `cat a1`
then I wanna copy all specific files with no... (12 Replies)
Discussion started by: svennie
12 Replies
4. UNIX for Dummies Questions & Answers
Trying to install Sco OSR 6.0 on Dell Optiplex with SERIAL ATA ADADPTEC 1210SA controller.
Sco says its sipported by the AACRAID driver but on installation its says that it doesnt recognise the partitions
In the middle of re-formatting at the moment - just wondered if anyone had anu... (0 Replies)
Discussion started by: farmacy
0 Replies
5. UNIX for Dummies Questions & Answers
hi guys...
i m using rm *.zip or rm -rf *.zip while removing from a server path recursively,
i m getting "Remove directory operation failed."
if i use rm* .zip
i m getting as invalid command and none of the files are removed..
please help where m i wrong
when i execute the... (13 Replies)
Discussion started by: madhu_aqua14
13 Replies
6. Programming
Im trying to write a program atm which uses mutexes to control thread access to a certain code section ( the critical section).
However, whenever I compile the code using gcc I get the following message from gcc
Unresolved text symbol "pthread_mutex_lock"
Unresolved text symbol... (1 Reply)
Discussion started by: JamesGoh
1 Replies
7. Programming
Hi all
Im trying to compile a C++ program, however Im having issues trying to link a particular library to the compiling and linking statement.
Here is what Im doing
g++ mips4 -std=c++98 -g disk_reporter.cpp -o disk_reporter
If I do this alone, the linker complains that library... (2 Replies)
Discussion started by: JamesGoh
2 Replies
8. UNIX for Dummies Questions & Answers
Hi everyone
In an existing crontab script for the root user, I've added 5 new lines of code, however for some unknown reason, these lines of code were not executed.
Here is what I did
30 0 * * * ./usr/people/atlab/jamesgoh/disk_reader/disk_reporter /picnic
30 0 * * *... (6 Replies)
Discussion started by: JamesGoh
6 Replies
9. Virtualization and Cloud Computing
Hi,
I'm trying to do this: Set up OpenSolaris with Qemu (Ubuntu is hostOS). I was able to get it up and running and I have installed it on my .img. But now I need internet connection. On my Ubuntu host I did this:
#brctl addbr br0
#tunctl
#brctl addif br0 wlan0
#brctl addif br0 tap0... (1 Reply)
Discussion started by: fisfia
1 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I want to validate ssh connection one after one for multiple servers..... password less keys already setup but now i want to validate if ssh is working fine or not...
I have .sh script like below and i have servers.txt contains all the list of servers
#/bin/bash
for host in $(cat... (3 Replies)
Discussion started by: sreeram4
3 Replies
LEARN ABOUT LINUX
ssh-copy-id
SSH-COPY-ID(1) General Commands Manual SSH-COPY-ID(1)
NAME
ssh-copy-id - install your public key in a remote machine's authorized_keys
SYNOPSIS
ssh-copy-id [-i [identity_file]] [user@]machine
DESCRIPTION
ssh-copy-id is a script that uses ssh to log into a remote machine and append the indicated identity file to that machine's ~/.ssh/autho-
rized_keys file.
If the -i option is given then the identity file (defaults to ~/.ssh/id_rsa.pub) is used, regardless of whether there are any keys in your
ssh-agent. Otherwise, if this:
ssh-add -L
provides any output, it uses that in preference to the identity file.
If the -i option is used, or the ssh-add produced no output, then it uses the contents of the identity file. Once it has one or more fin-
gerprints (by whatever means) it uses ssh to append them to ~/.ssh/authorized_keys on the remote machine (creating the file, and directory,
if necessary.)
NOTES
This program does not modify the permissions of any pre-existing files or directories. Therefore, if the remote sshd has StrictModes set in
its configuration, then the user's home, ~/.ssh folder, and ~/.ssh/authorized_keys file may need to have group writability disabled manu-
ally, e.g. via
chmod go-w ~ ~/.ssh ~/.ssh/authorized_keys
on the remote machine.
SEE ALSO
ssh(1), ssh-agent(1), sshd(8)
OpenSSH 14 November 1999 SSH-COPY-ID(1)