Хостинг. SVN

fan.oldschool
8 років
0
Ребяк у кого был опыт настройки svn именно на этом хостинге. так как настроить именно на этом хостинге не могу.
На виртуальной машине без всяких проблем настраивал, но там был доступ с под root.

Если у кого был опыт можете помочь ?!
Андрей
8 років
0
А можете уточнить до какого этапа доходите и что получаете в итоге?
fan.oldschool
8 років
1
1.
создаю репозиторий в mySite/www/svn (svnadmin create ~/mySite/www/svn
в файле svnserve.conf
раскоментирываю строки
anon-access = read
auth-access = write
password-db = passwd
authz-db = authz
2.
в файле passwd делаю пользователя login = password (такой как у моего пользователя под которым я иду)
в файле authz добавляю строки
[/]
login = rw
* = r
3. пытаюсь доустучаться до репозитория используя svn+ssh
svn info svn+ssh://login@mySite.ftp.ukraine.com.ua/mySite/www/svn

запрашивает пароль - ввожу пароль.
у вылитает пишет что

------------
bash: svnserve: command not found
svn: E210002: Unable to connect to a repository at URL 'svn+ssh://login@mySite.ftp.ukraine.com.ua/mySite/www/svn'
svn: E210002: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: E210002: Network connection closed unexpectedly
------------
(хотя пароль запрашивает значит видит меня).

Самое интересное что я настривал svn на koding.com (там дается виртуальная машина)
по разным протоколам http, svn, svn+ssh все отлично работает.
но там есть доступ из под root'a .

В общем как-то так. Если настраивал здесь может даш совет что делаю не так. Спасибо.

P.S. Думаю понятно что login => мой пользователь, mySite => назв моего сайта.
fan.oldschool
8 років
0
Ошибку вроде нашел запустил debug при устаноке подключения export SVN_SSH="ssh -v "

вот что вывело



OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to mySite.ftp.ukraine.com.ua [91.206.200.231] port 22.
debug1: Connection established.
debug1: identity file /home/vladfan/.ssh/id_rsa type -1
debug1: identity file /home/vladfan/.ssh/id_rsa-cert type -1
debug1: identity file /home/vladfan/.ssh/id_dsa type 2
debug1: identity file /home/vladfan/.ssh/id_dsa-cert type -1
debug1: identity file /home/vladfan/.ssh/id_ecdsa type -1
debug1: identity file /home/vladfan/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/vladfan/.ssh/id_ed25519 type -1
debug1: identity file /home/vladfan/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH_5* compat 0x0c000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<3072<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 6e:0b:c2:f6:f9:63:03:b2:35:d4:b4:df:30:b2:85:f8
debug1: Host 'mySite.ftp.ukraine.com.ua' is known and matches the RSA host key.
debug1: Found key in /home/vladfan/.ssh/known_hosts:3
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available

debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available

debug1: Unspecified GSS failure. Minor code may provide more information


debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available

debug1: Next authentication method: publickey
debug1: Trying private key: /home/vladfan/.ssh/id_rsa
debug1: Offering DSA public key: /home/vladfan/.ssh/id_dsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /home/vladfan/.ssh/id_ecdsa
debug1: Trying private key: /home/vladfan/.ssh/id_ed25519
debug1: Next authentication method: password
mySite@mySite.ftp.ukraine.com.ua's password:
debug1: Authentication succeeded (password).
Authenticated to mySite.ftp.ukraine.com.ua ([91.206.200.231]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending command: svnserve -t
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
bash: svnserve: command not found
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 3336, received 2672 bytes, in 0.1 seconds
Bytes per second: sent 27507.0, received 22032.0
debug1: Exit status 127
svn: E210002: Unable to connect to a repository at URL 'svn+ssh://mySite@mySite.ftp.ukraine.com.ua/mySite/www/svn'
svn: E210002: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: E210002: Network connection closed unexpectedly



тоесть я спокойно прохожу авторизацию в потом вызывается команда
debug1: Sending command: svnserve -t
но сервер ее не видит.
и валится
bash: svnserve: command not found
Андрей
8 років
0
login - имя аккаунта хостинга
mySite - то же самое. В этом смысле login == mySite

Пароль Вы используете тот, который можно увидеть в разделе SSH доступ?
fan.oldschool
8 років
0
пробую подключиться по протокоу http

svn info mySite/svn

Redirecting to URL 'mySite/svn':
Redirecting to URL 'mySite/svn':
svn: E195019: Redirect cycle detected for URL 'mySite/svn'


В общем это все на чем я остановился.
fan.oldschool
8 років
0
да пароль то что в ssh

да допустим svngavno.com это мой домен , то логин и пользователь у меня svngavno и с под него я запукаю svnadmin , mkdir и т.д.
Андрей
8 років
1
в логе, что Вы указали ошибка заключалась в :
bash: svnserve: command not found

Доступ к svnserve для клиентского ssh не был предоставлен - исправили.

Проверьте, пожалуйста, сейчас
fan.oldschool
8 років
1
все заработало. Спс.
Тема закрита.