VMFest sshing with host-only adapter

212 views
Skip to first unread message

Ryan Stradling

unread,
May 5, 2013, 11:49:09 AM5/5/13
to palle...@googlegroups.com
Hey guys,
I have a ssh issue in using pallet and vmfest.  I first thought it was an issue on my end, but as I have done more and more investigation it seems like an issue on my end + an issue with how pallet uses ssh for initial log-in via username and password.  The summation of the error is I get is
clojure.lang.ExceptionInfo: SSH connect: server 192.168.56.110 port 22 user vmfest password ****** pk-path null pk null {:type :pallet/ssh-connection-failure, :ip "192.168.56.110", :port 22, :user "vmfest"}
Caused by: com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT: 2 Too many authentication failures for vmfest 

Well once the server was up I also could not connect via ssh from the command line so knew it was something with my set-up.  The issue is it was trying a bunch of pub keys and the server would respond with too many attempts and never get to the passphrase prompt.  This server is a stock ubuntu 12.04 server.  So to fix the issue locally I ran ssh -o PubkeyAuthentication=no vmfest@<ipaddress>.  This worked correctly and was able to login to the machine.  Yeah!!! 

host XXX.XXX.XX.*
IdentitiesOnly yes

I now can do 
from the command line and all works fine.

Well since I had it in my ssh config file I thought all would be fine in pallet as I assumed pallet uses that.  Unfortunately, that set in my config file has no affect on ssh from pallet.  I still get …
Caused by: com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT: 2 Too many authentication failures for vmfest 

So right now I am pretty much stuck.  I cannot get a machine provisioned using pallet vmfest via pallet.

It seems like in the case of passing a username and password to SSH, we would want to pass the option of PukeyAuthenticaton=no to prevent this from happening (or to do something to that affect) or always pass in option -o IdentitiesOnly=yes to all ssh commands.  I am not sure which is the best option given pallet's use.

I appreciate any help or guidance on resolving this issue.

Thanks
Ryan

Ryan Stradling

unread,
May 5, 2013, 2:48:06 PM5/5/13
to palle...@googlegroups.com
For now ssh-add -D to delete all keys in my ssh-agent seems to make things work.

Thanks,
Ryan
Reply all
Reply to author
Forward
0 new messages