Execute script on remote linux server
Using linux machineX I want to execute a script on linux machineY. The script in question, scripts/thisscript.sh resides on machineY.
When I try Code:
ssh me@machineY scripts/thisscript.sh I get this error: Code:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ If the solution is - as stated above - to Add correct host key in /home/me/.ssh/known_hosts how do I find the correct key to add to the known_hosts file? If not, what should I do? FWIW, the server is an ancient Sun Cobalt RaQ 3 running Red Hat 7.2 |
Ooops. Ignore this.
|
Quote:
you know for sure it's OK to do so, because e.g. you re-installed the machine in question after machine X had first contacted machine Y. So you simply edit /home/me/.ssh/known_hosts with your favourite editor, and delete the offending line. Next time you connect ssh will ask you whether or not you want to add the key to your know_hosts file, and voila, you're away laughing (and sshing w/o error messages). Cheers, Tink |
All times are GMT -5. The time now is 01:43 AM. |