Operating System - Linux
1755747 Members
2517 Online
108837 Solutions
New Discussion

Re: ssh command within script gives "select: Invalid argument" error.

 
RAC_1
Honored Contributor

Re: ssh command within script gives "select: Invalid argument" error.

sshd[2953]: error: getsockname failed: Invalid argument
Makes me think, Any firewalls in between?? The sshd by default listens to port 22. Is that port open in firewall??

Also you can run sshd -ddd and get more verbose details about error message.

Also as you are running through cron, make sure that you have all required variables set properly. Intentionally cron environment is very sparse.
There is no substitute to HARDWORK