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.
|
In my case, I want to do a SVN checkout:
However, I want to have the password in that one line, so that it doesn't pop up.
| |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
| |||
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. | |||
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. | |||
|
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. | |||
|
feedback
|
|
You can also use the given switches username and password. Refer Command-line authentication. | |||
|
feedback
|
| |||
|
feedback
|