In my case, I want to do a SVN checkout:

svn co svn+ssh://10.106.191.164/home/svn/shproject

However, I want to have the password in that one line, so that it doesn't pop up.

link|improve this question

74% accept rate
feedback

migrated from stackoverflow.com Nov 17 '09 at 3:03

This question came from our site for professional and enthusiast programmers.

6 Answers

up vote 8 down vote accepted

svn co svn+ssh://username:password@10.106.191.164/home/svn/shproject

link|improve this answer
+1 for answering the question and not just providing alternatives (worthy though they may be). – briealeida Nov 19 '09 at 3:59
feedback

Given that you're using SSH, the preferred way is to use a public key for authorization, which saves the need of a password completely.

A guide for creating and installing the keys can be found here.

link|improve this answer
Of course, if you want your key to be really secure, you should give it a pass phrase. :/ – Rob Jan 20 at 3:03
feedback

Instead of using a password you might want to have a look at a private/public key pair and have ssh use that. most linux distributions come with easy to use commands to create such a pair. this would however require access ti the server side (once) to deposit the public key file in your user's ~/.ssh/authorized_keys file.

link|improve this answer
feedback

Infinitely better is to generate a keypair. As your local user:

$ ssh-keygen -t rsa

(accept all defaults)

Then take the contents of .ssh/id_rsa.pub and add it on the remote server to .ssh/authorized_keys Be very sure it is all pasted into the same line. Also be very sure the permissions of the .ssh directory are 600.

Then you should be able to ssh without being prompted for a password.

link|improve this answer
feedback

You can also use the given switches username and password.

Refer Command-line authentication.

link|improve this answer
feedback
svn co svn+ssh://10.106.191.164/home/svn/shproject --non-interactive --trust-server-cert --username <username> --password <password> --no-auth-cache
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.