I'm working on a script that will ssh from mac osx to a SmartOS (based on solaris) server and execute some commands but I'm stuck at the login part. I'm currently setup to be able to login with public key authentication which works fine manually but I'm being prompted for a password when I attempt to run the script.
joyentmac2252:~ jessebutryn$ ssh root@X.X.X.X [root@sup-jpc-west1 ~]# bash /root/sup-toolbox/toolbox Enter your JPC Headnode username: jbutryn Toolbox - Version 4.4.6 - It's Wednesday, this must be Devon (20161116) ---- Recent Changes ---- Replaced sdc-ldap/ufds with OpenLDAP client vm/vmi now shows Swap Moved creds to environment Added random element to disabler string fraud() speed up Added over() for PD overrides Added RAM to vms_by_pkg / fraud Added dates to cust() Big speed up for cust_vms(). You are welcome. ------------------------ [root@sup-jpc-west1 ~]#
#!/bin/bash # SUPNODE="X.X.X.X" ssh root@$SUPNODE bash /root/sup-toolbox/toolbox <<-'EOF' jbutryn EOF
joyentmac2252:~ jessebutryn$ ~/Documents/scripts/incomplete/fraudcheck.sh Password:
Anyone know what could be causing this password prompt?