Is there a way to avoid ssh login warning messages while login to remote server through scripts? But I do not want to change any configurations in remote server, but in scripts or any options.
migrated from stackoverflow.com Oct 16 '12 at 11:48
This question came from our site for professional and enthusiast programmers.
If you're trying to suppress warnings coming from the
when connecting to test systems that are regularly being reinstalled. This does yield the following warning:
But if you add the
Yes This is horribly dangerous WRT man-in-the-middle attacks, but it is ideal for what we're doing
If you're trying to suppress warnings from the remote system then if it obeys the .hushlogin mechanism, you can use:
on the remote system to suppress the
Call ssh with the argument:
It will supress message from the server