You'll need to elaborate on what you are trying to do (eg Run commands on another server? Transfer a file? Check the status of another server?) but the basis would be as follows:
Then (on the destination server) create an authorized keys file (~/.ssh/authorized_keys) containing the public ssh key found in your source server's ~/.ssh/id_dsa.pub (or something similar) file.
This will allow passwordless connection between the two users on the two servers.
This all assumes you are using ssh of course and that you are trying to run a command on teh remote host. Fill in more details if this is not the case.
if you would like to ssh from 1st server to 2nd server
1.Login into 2nd server using the 2ndserveruser and create a directory named .ssh (note . before ssh) under the home directory .
2. Login into 1st server and go to .ssh directory.
3. Run the following command from this directory
ssh-keygen -t rsa
This would prompt for the filename to which the key to be stored.A default value is given in brackets as id_rsa. So just press RETURN to continue. Next it would ask for Passphrase. Press RETURN to continue. Again it would ask for same passphrase again. Again press RETURN to continue.This would generate key pair and stores it in id_rsa file.
4.Exit from this .ssh directory (cd ..)and go back to home directory.From the home directory run the following command:
cat .ssh/id_rsa.pub|ssh 2ndserveruser@2ndserverIP 'cat >> .ssh/authorized_keys'
How can I conncet web server via web?
What are the pre- requist?
I am having only one Public IP, I am useing SCO OPEN SERVER 5.0.5
Help Me.
Thanks in advance (3 Replies)
Hi,
I would like to connect UNIX server to UNIX server through shell scripts
and i have some concepts . But i am totally confused how to connect UNIX
server to UNIX server throuth running a script. It will be greatful to me if
any buddy will help me.
Thanks in advance.
Phatan:) (2 Replies)
Dear Team,
I am very new to shell scripting & and presently monitoring unix boxes
I am looking for a shell script which will give me the below output
script should contain -
hostname,OS Version,CPU details, Physical Memory, Partitions Details, Network Details and Software Installed,... (5 Replies)
Hi
i am writing a script in unix where after some validations, i require the script to connect to a windows server and then kich off a batch file there. i tried ftp and got the error message that "the remote host refused an attempted connect operation".
I am able to connect to this unix... (4 Replies)
Hi,
i am trying to connect to unix server from windows bat file using telnet command. But bat file is unable to pass username and password hence could not login to UNIX.
My requirement is to connect UNIX server from .bat file and run few macros at a perticular schedule. My UNIX login does... (1 Reply)
I am getting the fallowing error when i am trying to execute the scp commomd in shell script
warning: You have no controlling tty. Cannot read confirmation.
warning: Authentication failed.
Disconnected; key exchange or algorithm negotiation failed (Key exchange failed.).
scp2: warning: ssh2... (1 Reply)
Is there any possibility to develop an application using Visual Basic that connects to a unix server (using SSH) and run some commands?
I will try to describe what i need :
The user should enter the server adress, username and password!
Than the user must enter some "filenames" and after... (10 Replies)
Hi Gurus,
I'm a unix newbie and I would like to connect to multiple unix servers from unix server using shell script i.e from server a to server b,c,d etc. I want to copy the files from unix server a to server b, c, d. I can access staright using ssh without the need to have password and user... (5 Replies)
Hi everyone, I am new to Unix and looking for help here.
we have four terminals connected to our solaris server (x86 based).
the server got an interface card which provide serial port and video port for all chained terminals in a serial way. All these clients have no IP and they all display... (3 Replies)
Is it possible to upload a file from unix server to sharepoint server through shell or perl scripting. I have the sharepoint link where it needs to be uploaded.
Could you please share your views on this ? (0 Replies)
Discussion started by: scriptscript
0 Replies
LEARN ABOUT LINUX
ssh-keysign
SSH-KEYSIGN(8) BSD System Manager's Manual SSH-KEYSIGN(8)NAME
ssh-keysign -- ssh helper program for host-based authentication
SYNOPSIS
ssh-keysign
DESCRIPTION
ssh-keysign is used by ssh(1) to access the local host keys and generate the digital signature required during host-based authentication with
SSH protocol version 2.
ssh-keysign is disabled by default and can only be enabled in the global client configuration file /etc/ssh/ssh_config by setting
EnableSSHKeysign to ``yes''.
ssh-keysign is not intended to be invoked by the user, but from ssh(1). See ssh(1) and sshd(8) for more information about host-based authen-
tication.
FILES
/etc/ssh/ssh_config
Controls whether ssh-keysign is enabled.
/etc/ssh/ssh_host_dsa_key
/etc/ssh/ssh_host_ecdsa_key
/etc/ssh/ssh_host_rsa_key
These files contain the private parts of the host keys used to generate the digital signature. They should be owned by root, read-
able only by root, and not accessible to others. Since they are readable only by root, ssh-keysign must be set-uid root if host-
based authentication is used.
/etc/ssh/ssh_host_dsa_key-cert.pub
/etc/ssh/ssh_host_ecdsa_key-cert.pub
/etc/ssh/ssh_host_rsa_key-cert.pub
If these files exist they are assumed to contain public certificate information corresponding with the private keys above.
SEE ALSO ssh(1), ssh-keygen(1), ssh_config(5), sshd(8)HISTORY
ssh-keysign first appeared in OpenBSD 3.2.
AUTHORS
Markus Friedl <markus@openbsd.org>
BSD August 31, 2010 BSD