Job to connect to remote server using SSH
Moderators: chulett, rschirm, roy
Job to connect to remote server using SSH
Hi,
I need to connect to a remote server through SSH through datastage job. I am trying to use execute command stage and the script i am giving is ssh <server_name> ; <user_name>
keys are established between the 2 servers.
But the job is failing.
Can some one help me with the script I have to give and if this is possible using any other stage apart from execute command stage.
Thanks,
Mounika
I need to connect to a remote server through SSH through datastage job. I am trying to use execute command stage and the script i am giving is ssh <server_name> ; <user_name>
keys are established between the 2 servers.
But the job is failing.
Can some one help me with the script I have to give and if this is possible using any other stage apart from execute command stage.
Thanks,
Mounika
Mounika V
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 194
- Joined: Thu May 11, 2006 9:42 am
Might be Keys not setup properly.
Did you try to connect from unix to remote server before connecting from datastage?
Execute the below syntax on unix and if there is error or prompting for password then fix the key issues else you are good with key setup.
ssh userid@remote server name
Did you try to connect from unix to remote server before connecting from datastage?
Execute the below syntax on unix and if there is error or prompting for password then fix the key issues else you are good with key setup.
ssh userid@remote server name
Thanks,
Chris Jones
Chris Jones
OK... just for grins, clarify something. Are you executing an actual script in the Execute Command stage or not? It almost sounds like all you have in the stage is just the "ssh" command but that would make zero sense. What are you trying to accomplish? You need to ssh to a remote server and then what?
If you are running that ssh from the command line using the same credentials as the job and it prompts for the password, then you don't have the RSA keys / credentials setup correctly. And you won't be able to pass the password on the command line as that would make it not... "secure".
If you are running that ssh from the command line using the same credentials as the job and it prompts for the password, then you don't have the RSA keys / credentials setup correctly. And you won't be able to pass the password on the command line as that would make it not... "secure".
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Hi All,
Sorry for the late reply.
I am providing the server name, user name and password as well along with ssh.
How ever even while connecting manually, i need to provide the user id , apart from teh connection id and password i use for login.
RSA was not set up properly. So, we are trying to provide password while doing ssh.
Thanks,
Mounika
Sorry for the late reply.
I am providing the server name, user name and password as well along with ssh.
How ever even while connecting manually, i need to provide the user id , apart from teh connection id and password i use for login.
RSA was not set up properly. So, we are trying to provide password while doing ssh.
Thanks,
Mounika
Mounika V