From: William P. \(Puddle\) <rot...@ya...> - 2005-08-29 18:58:46
|
Okay, created a shell script with /usr/bin/bash -x running the below. It hangs on the password prompt as you stated. I thought about doing the keyless deal, but cross teaching developers who aren't familar with SSH would be a PITA. I could make a script probably to go out and do it for everyone. However, I like the added responsability of you know your own credentials or you don't get in. Thanks again for all your help. -bash-3.00$ ./sandweb.sh + /opt/sfw/bin/sandweb-expect vcs /opt/sfw/share/sandweb/users/puddle/passwd 'cd '\''/opt/sfw/share/sandweb/users/puddle/flash//'\'' && MESSAGE_FILE=/opt/sfw/share/sandweb/users/puddle/commitmsg && export MESSAGE_FILE && CVSEDITOR=/opt/sfw/bin/sandweb-editor && export CVSEDITOR && SSH_BIN=/opt/csw/bin/ssh && export SSH_BIN && CVS_RSH=/opt/sfw/bin/sandweb-ssh && export CVS_RSH && /opt/sfw/bin/cvs -q -d :ext:puddle@192.168.0.100:/export/home/cvsroot/flash/ update -P -d '\''flash'\''' spawn /bin/sh -c cd '/opt/sfw/share/sandweb/users/puddle/flash//' && MESSAGE_FILE=/opt/sfw/share/sandweb/users/puddle/commitmsg && export MESSAGE_FILE && CVSEDITOR=/opt/sfw/bin/sandweb-editor && export CVSEDITOR && SSH_BIN=/opt/csw/bin/ssh && export SSH_BIN && CVS_RSH=/opt/sfw/bin/sandweb-ssh && export CVS_RSH && /opt/sfw/bin/cvs -q -d :ext:puddle@192.168.0.100:/export/home/cvsroot/flash/ update -P -d 'flash' Password: --- Rob Helmer <ro...@ro...> wrote: > Hi William, > > Here is the command: > DEBUG: (SandWeb::Shell) Full command is : > /opt/sfw/bin/sandweb-expect vcs > /opt/sfw/share/sandweb/users/puddle/passwd "cd > '/opt/sfw/share/sandweb/users/puddle/flash//' && > MESSAGE_FILE="/opt/sfw/share/sandweb/users/puddle/commitmsg" > && export MESSAGE_FILE && > CVSEDITOR=/opt/sfw/bin/sandweb-editor && export > CVSEDITOR && SSH_BIN=/opt/csw/bin/ssh && export > SSH_BIN && CVS_RSH=/opt/sfw/bin/sandweb-ssh && > export > CVS_RSH && /opt/sfw/bin/cvs -q -d > ":ext:puddle@192.168.0.100:/export/home/cvsroot/flash/" > update -P -d 'flash'" > > Yes, it's insanely long :) It might be more sane for > us to hide this in > a shell script.. in fact that'd make debugging > easier (we could start it > with #!/bin/sh -x so the output gets into sandweb's > debug mode). > > Anyway, try pasting everything after "Full command > is:" into your web > user's shell. Make sure it's all on one line, or > split it into seperate > lines in a shell script (can split on &&, && means > to run the next > command only if the previous succeeded). > > Driving SSH using expect turned out to be very > complex, unfortunately.. > I'd like a future version of sandweb to just use the > SSH wire protocol > (I think there are perl modules for this now..). > Would be cool to just > upload your SSH key into sandweb, and not need to > configure this shell > nonsense. > > > -- > Rob > > William Pool (Puddle) wrote: > > Yes, Sun's SSH version is based off of OpenSSH. > > > > Now, I enabled debugging, but when trying to > connect > > to the sandbox repository using SSH. The window > comes > > up, but it's white with no-output. > > > > When I kill the webserver uid sshd sessions then I > get > > error output. > > > > Doesn't provide any ssh commands though. > > > > DEBUG: (main) Repo name: flash > > DEBUG: (main) Repo root: > /export/home/cvsroot/flash/ > > DEBUG: (main) VCS sandbox: > > /opt/sfw/share/sandweb/users/puddle/flash// > > DEBUG: (main) Repo type: CVS > > DEBUG: (main) Filename(s): flash > > DEBUG: (SandWeb::Repository) Performing update > > operation > > DEBUG: (SandWeb::Repository) Params: prune 1 > clobber 0 > > directories 1 file flash > > DEBUG: (SandWeb::Repository::cvs) Performing > update > > operation > > DEBUG: (SandWeb::Repository::cvs) Params: update > -P -d > > DEBUG: (SandWeb::Repository::cvs) File: flash > > DEBUG: (SandWeb::Repository::cvs) Creating Shell > > object > > DEBUG: (SandWeb::Shell) VCS call to Unix shell > > DEBUG: (SandWeb::Shell) VCS command is : cd > > '/opt/sfw/share/sandweb/users/puddle/flash//' && > > > MESSAGE_FILE="/opt/sfw/share/sandweb/users/puddle/commitmsg" > > && export MESSAGE_FILE && > > CVSEDITOR=/opt/sfw/bin/sandweb-editor && export > > CVSEDITOR && SSH_BIN=/opt/csw/bin/ssh && export > > SSH_BIN && CVS_RSH=/opt/sfw/bin/sandweb-ssh && > export > > CVS_RSH && /opt/sfw/bin/cvs -q -d > > > ":ext:puddle@192.168.0.100:/export/home/cvsroot/flash/" > > update -P -d 'flash' > > DEBUG: (SandWeb::Shell) Using VCS > username/password > > DEBUG: (SandWeb::Shell) Full command is : > > /opt/sfw/bin/sandweb-expect vcs > > /opt/sfw/share/sandweb/users/puddle/passwd "cd > > '/opt/sfw/share/sandweb/users/puddle/flash//' && > > > MESSAGE_FILE="/opt/sfw/share/sandweb/users/puddle/commitmsg" > > && export MESSAGE_FILE && > > CVSEDITOR=/opt/sfw/bin/sandweb-editor && export > > CVSEDITOR && SSH_BIN=/opt/csw/bin/ssh && export > > SSH_BIN && CVS_RSH=/opt/sfw/bin/sandweb-ssh && > export > > CVS_RSH && /opt/sfw/bin/cvs -q -d > > > ":ext:puddle@192.168.0.100:/export/home/cvsroot/flash/" > > update -P -d 'flash'" > > DEBUG: (SandWeb::Shell) VCS call to Unix shell > > DEBUG: (SandWeb::Shell) VCS command is : rm > > "/opt/sfw/share/sandweb/users/puddle/passwd" > > DEBUG: (SandWeb::Shell) Not using VCS > > username/password > > > > Now, a ps grep of the ssh processes running from > > sandweb are: > > > > webservd 5885 5884 0 16:58:26 pts/3 0:00 > > /usr/bin/bash /opt/sfw/bin/sandweb-ssh -l puddle > > 192.168.0.100 cvs server > > > > webservd 5886 5885 0 16:58:26 pts/3 0:00 > > /opt/csw/bin/ssh -q -oStrictHostKeyChecking no -l > > puddle 192.168.0.100 cvs serv > > > > webservd 484 483 0 Aug 24 pts/2 0:00 > > /usr/bin/bash /opt/sfw/bin/sandweb-ssh -l puddle > > 192.168.0.100 cvs server > > > > webservd 485 484 0 Aug 24 pts/2 0:00 > > /opt/csw/bin/ssh -q -oStrictHostKeyChecking no -l > > puddle 192.168.0.100 cvs server > > > > When I try to run the ssh command of pid 485 (that > I > > believe is passing the sandweb-ssh commands I get: > > > > Okay, after doing a man sshd_config and on sshd I > > don't see anything about the > 'StrictHostKeyChecking' > > option. > > > > It was bombing on it as well via the command line. > I > > commented that out (sandweb-ssh) and added just : > > > > # Here's the main action of this script > > # $SSH_BIN -q -o'StrictHostKeyChecking no' > $SSH_ARGS > > $SSH_BIN -q $SSH_ARGS > > > > Try to check-out again, the same problem white box > > comes up no debug/output. Watch the server > processes > > ssh just hangs. > > > > When I do a grep of the processes now I get: > > > > webservd 6051 6050 0 17:15:33 pts/2 0:00 > > /usr/bin/bash /opt/sfw/bin/sandweb-ssh -l puddle > > 192.168.0.100 cvs server > > > > webservd 6052 6051 0 17:15:33 pts/2 0:00 > > /opt/csw/bin/ssh -q -l puddle 192.168.0.100 cvs > server > > > > webservd 6050 6047 0 17:15:33 pts/2 0:00 > > /opt/sfw/bin/cvs -q -d > > > :ext:puddle@192.168.0.100:/export/home/cvsroot/flash/ > > ch > > > > I try it via the command line: > > > > $ ssh -q -l puddle 192.168.0.100 cvs server > > Password: > > ksh: cvs: not found > > $ > > > > Which I thought looked weird to the 'cvs server' > after > > the ssh command. > > > > Hope this helps some. > > > > --- Rob Helmer <ro...@ro...> wrote: > > > > > >>Hi William, > >> > >>William Pool (Puddle) wrote: > >> > >>>When I setup a local sandbox using SSH to the > >> > >>actual > >> > >>>machine the SSH session brings up the checkout > === message truncated === __________________________________ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail |