Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Untitled #14

Closed
gw666 opened this issue Oct 16, 2010 · 3 comments
Closed

Untitled #14

gw666 opened this issue Oct 16, 2010 · 3 comments

Comments

@gw666
Copy link

gw666 commented Oct 16, 2010

Hi--I've read the documentation at http://github.com/ato/clojars-web/wiki/Pushing quite carefully, and I'm pretty sure that I followed the directions correctly. Still I get the following error:


[C:\tech\cljprojects\piccolo2dcore-to-clojars]pscp pom.xml piccolo2dcore-1.3.jar
clojars@clojars.org:
Fatal: Disconnected: No supported authentication methods available (server sent:

publickey)

BTW, pscp is a scp command that is part of PuTTY on Windows.

Here is what's in the pom.xml file:


4.0.0 org.clojars.gw666 piccolo2dcore 1.3 piccolo2dcore-1.3 core library for Piccolo2D graphics library clojars http://clojars.org/repo/ ##

Any ideas on where the error is? I've spent about two hours on this.

Thanks for your help.

--Gregg Williams, gregg AT innerpaths DOT net

@ato
Copy link
Collaborator

ato commented Oct 16, 2010

Hi Gregg,

I'm afraid I don't use Windows so I'm not too familiar with pscp, but it sounds like it isn't picking up your SSH key. Googling "pscp" brought me to the manual. At the very bottom it explains that you may either need to use the "-i" option to pass it a keyfile or run "pageant".

http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter5.html

Please let me know if that does or doesn't help, so that if it does help I can update the documentation and if it doesn't we can try something else.

Thanks,

Alex

@gw666
Copy link
Author

gw666 commented Oct 16, 2010

I'm afraid I am using Windows, which increasingly seems to be the problem. This time I got the following:

[C:\tech\cljprojects\piccolo2dcore-to-clojars]pscp -i id_rsa piccolo2dcore-1.3.j
ar clojars@clojars.org:
Unable to use key file "id_rsa" (OpenSSH SSH-2 private key)
Fatal: Disconnected: No supported authentication methods available (server sent:
publickey)

I tried using a private key in the Putty format (which this pscp seems to need), but I couldn't get clojars.org to except the public key, which it said was invalid. I then tried using a GUI program, WinSCP, and after figuring out how to manipulate the GUI, it seemed to recognize the private/public keys, but aborted the process because it didn't understand the WinSCP program; it suggested that I use bash.if you can't think of anything else, I will install cygwin (which I haven't had much luck with) and try that way.

You know, I decided on using Windows instead of MacOS X because I thought these kinds of problems would be solved for such a much-used system. I'm beginning to doubt that.

Thanks again for your help.

--Gregg

@gw666
Copy link
Author

gw666 commented Oct 16, 2010

More Windows ranting: Things work $%*&$@! fine if you can get as far away from windows as possible! I installed Cygwin (scp is not part of the default install, by the way), and got the following:

add-minimum@user-f38f1ebc55 /cygdrive/C/tech/cljprojects/piccolo2dcore-to-clojar
s
$ scp pom.xml piccolo2dcore-1.3.jar clojars@clojars.org:
The authenticity of host 'clojars.org (173.230.139.200)' can't be established.
RSA key fingerprint is d6:d9:00:72:04:2f:08:a0:f1:92:47:a0:1e:cb:90:cd.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'clojars.org,173.230.139.200' (RSA) to the list of kn
own hosts.
Permission denied (publickey).
lost connection

When I explicitly added the private key file with the -i option, here's what happened:

add-minimum@user-f38f1ebc55 /cygdrive/C/tech/cljprojects/piccolo2dcore-to-clojar
s
$ scp -i id_rsa pom.xml piccolo2dcore-1.3.jar clojars@clojars.org:
Welcome to Clojars, gw666!
pom.xml 100% 458 0.5KB/s 00:00
piccolo2dcore-1.3.jar 100% 104KB 103.8KB/s 00:00
[INFO] Retrieving previous metadata from clojars
[INFO] repository metadata for: 'artifact org.clojars.gw666:piccolo2dcore' could
not be found on repository: clojars, so will be created
[INFO] Uploading repository metadata for: 'artifact org.clojars.gw666:piccolo2dc
ore'
[INFO] Uploading project information for piccolo2dcore 1.3

add-minimum@user-f38f1ebc55 /cygdrive/C/tech/cljprojects/piccolo2dcore-to-clojar
s
$

Worked the FIRST time (the file showed up in my clojars account)!

The Wikipedia entry on scp said two things of interest. First, it said that Windows GUI clients often don't work (matches my experience!). Second, it said, "The SCP protocol has been superseded by the more comprehensive SFTP protocol, which is also based on SSH." I don't know if that makes a difference to you or not. But if you update the command line example on the Pushing page to add the -i flag, that will certainly help. I also invite you to consider adding something about how users may have problems with various Windows solutions for scp, and recommending using Cygwin in the first place.

Thanks for your excellent support, and for Clojars.org!

--Gregg

@xeqi xeqi closed this as completed Apr 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants