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

Постоянно страшивает пароль #19

Closed
nmike opened this issue Apr 28, 2015 · 4 comments
Closed

Постоянно страшивает пароль #19

nmike opened this issue Apr 28, 2015 · 4 comments

Comments

@nmike
Copy link
Contributor

nmike commented Apr 28, 2015

у меня Windows 7
при настройке синхронизации он 3 раза спрашивает пароль (а должен вроде один) и потом при синхронизации, тоже спрашивает пароль, причем в консоли.

dkLab RealSync: replicate developer's files over SSH in realtime.

Starting 6-steps interactive installation.

THIS WIZARD IS APPEARED ONLY ONCE!
NEXT TIME THE REPLICATION WILL BE STARTED IMMEDIATELY.

(Step 1/6) LOCAL directory to replicate FROM:
   [c:/Users/1/PhpstormProjects/gl-SOMESITE]
(Step 2/6) REMOTE host to replicate TO (host or host:port): dev.SOMESITE.ru:22101
(Step 3/6) REMOTE SSH login at dev.SOMESITE.ru:22101: USERNAME
   checking if we have access without a password to this host...
   no access, generating new SSH keys.
(Step 4/6) ONLY ONCE you will be asked for a password. Continue? [y] y
Copying SSH key to USERNAME@dev.SOMESITE.ru:22101. Executing:
$ ssh -o StrictHostKeyChecking=no -p22101 USERNAME@dev.SOMESITE.ru
 "cd; umask 077; test -d .ssh || mkdir .ssh; (echo; cat) >> .ssh/authorized_keys
"
USERNAME@dev.SOMESITE.ru's password:
Public key C:\Users\1\AppData\Roaming/.realsync/49252b1b44_Users_1_PhpstormProje
cts_gl_SOMESITE/.ssh/identity.pub is copied to USERNAME@dev.SOMESITE.ru:2210
1!

(Step 5/6) REMOTE directory at USERNAME@dev.SOMESITE.ru:22101 to replicate
to: /home/USERNAME/www/gl-SOMESITE
   checking if the directory exists...
USERNAME@dev.SOMESITE.ru's password:

(Step 6/6) Exclusions from .realsync configuration are:
  .realsync CVS .git .svn .hg .cache .idea nbproject ~* *.tmp *.pyc *.swp
Enter a space-separated list of ADDITIONAL exclusions: [<none>]

All done. Configuration is saved to:
  c:/Users/1/PhpstormProjects/gl-SOMESITE/.realsync
Generated SSH private key is saved to:
  C:\Users\1\AppData\Roaming/.realsync/49252b1b44_Users_1_PhpstormProjects_gl_le
board/.ssh/identity

Press Enter start the replication.
[14:09:43] Running async notification watcher (to save CPU time).
[14:09:43] Initiating a background connection with /home/USERNAME/www/gl-SOMESITE.
..
Warning: Permanently added '[dev.SOMESITE.ru]:22101,[1.2.3.4]:22101'
 (RSA) to the list of known hosts.
USERNAME@dev.SOMESITE.ru's password: [14:09:44] Fast initial rsync synchron
ization...
USERNAME@dev.SOMESITE.ru's password:

и затем синхронизация снова и снова ждет пароля..

@dimikot
Copy link
Owner

dimikot commented Apr 28, 2015

А у вас имя пользователя в винде, случаем, не включает ли русские буквы?

On Tuesday, April 28, 2015, Mike Nastin notifications@github.com wrote:

у меня Windows 7
при настройке синхронизации он 3 раза спрашивает пароль (а должен вроде
один) и потом при синхронизации, тоже спрашивает пароль, причем в консоли.

dkLab RealSync: replicate developer's files over SSH in realtime.

Starting 6-steps interactive installation.

THIS WIZARD IS APPEARED ONLY ONCE!
NEXT TIME THE REPLICATION WILL BE STARTED IMMEDIATELY.

(Step 1/6) LOCAL directory to replicate FROM:
[c:/Users/1/PhpstormProjects/gl-SOMESITE](Step 2/6) REMOTE host to replicate TO (host or host:port): dev.SOMESITE.ru:22101
(Step 3/6) REMOTE SSH login at dev.SOMESITE.ru:22101: USERNAME
checking if we have access without a password to this host...
no access, generating new SSH keys.
(Step 4/6) ONLY ONCE you will be asked for a password. Continue? [y] y
Copying SSH key to USERNAME@dev.SOMESITE.ru:22101. Executing:
$ ssh -o StrictHostKeyChecking=no -p22101 USERNAME@dev.SOMESITE.ru javascript:_e(%7B%7D,'cvml','USERNAME@dev.SOMESITE.ru');
"cd; umask 077; test -d .ssh || mkdir .ssh; (echo; cat) >> .ssh/authorized_keys
"USERNAME@dev.SOMESITE.ru javascript:_e(%7B%7D,'cvml','USERNAME@dev.SOMESITE.ru');'s password:
Public key C:\Users\1\AppData\Roaming/.realsync/49252b1b44_Users_1_PhpstormProje
cts_gl_SOMESITE/.ssh/identity.pub is copied to USERNAME@dev.SOMESITE.ru:2210
1!

(Step 5/6) REMOTE directory at USERNAME@dev.SOMESITE.ru:22101 to replicate
to: /home/USERNAME/www/gl-SOMESITE
checking if the directory exists...USERNAME@dev.SOMESITE.ru javascript:_e(%7B%7D,'cvml','USERNAME@dev.SOMESITE.ru');'s password:

(Step 6/6) Exclusions from .realsync configuration are:
.realsync CVS .git .svn .hg .cache .idea nbproject ~* *.tmp *.pyc *.swp
Enter a space-separated list of ADDITIONAL exclusions: []

All done. Configuration is saved to:
c:/Users/1/PhpstormProjects/gl-SOMESITE/.realsync
Generated SSH private key is saved to:
C:\Users\1\AppData\Roaming/.realsync/49252b1b44_Users_1_PhpstormProjects_gl_le
board/.ssh/identity

Press Enter start the replication.
[14:09:43] Running async notification watcher (to save CPU time).
[14:09:43] Initiating a background connection with /home/USERNAME/www/gl-SOMESITE.
..
Warning: Permanently added '[dev.SOMESITE.ru]:22101,[1.2.3.4]:22101'
(RSA) to the list of known hosts.USERNAME@dev.SOMESITE.ru javascript:_e(%7B%7D,'cvml','USERNAME@dev.SOMESITE.ru');'s password: [14:09:44] Fast initial rsync synchron
ization...USERNAME@dev.SOMESITE.ru javascript:_e(%7B%7D,'cvml','USERNAME@dev.SOMESITE.ru');'s password:

и затем синхронизация снова и снова ждет пароля..


Reply to this email directly or view it on GitHub
#19.

@nmike
Copy link
Contributor Author

nmike commented Apr 28, 2015

Нет, пользователь у меня без русских символов, точно.
Все хорошо разрешилось... На сервере я права на директорию .ssh выставил не верно, ключ он создавал, но когда обращался к серверу для синхронизации просто отвергал ключ.
права исправил - все заработало.
Извиняюсь, что отвлек. Спасибо за отличную програмку,

@nmike nmike closed this as completed Apr 28, 2015
@dimikot dimikot reopened this Apr 29, 2015
@dimikot
Copy link
Owner

dimikot commented Apr 29, 2015

Понятно. Но зря вы закрыли issue.

Можете ли вы внести исправление в строчку
https://github.com/DmitryKoterov/dklab_realsync/blob/master/realsync#L417
чтобы права на директорию .ssh принудительно устанавливались в 0700, даже если она существует, и сделать пулл-реквест (предварительно протестировав, естественно, что в вашем случае это бы действительно решило проблему)? Мне кажется, такая проблема много у кого может встретиться - возможно, даже большинство жалоб людей, у которых realsync переспрашивает пароль, связаны именно с данной бедой.

@dimikot
Copy link
Owner

dimikot commented Apr 29, 2015

...предварительно протестировав, естественно, что в вашем случае это бы действительно решило проблему.

nmike added a commit to nmike/dklab_realsync that referenced this issue May 5, 2015
in case of dimikot#19 folder rights ~/ssh must be 700 and file rigths ~/ssh/authorized_keys must be 600
@nmike nmike closed this as completed May 8, 2015
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

2 participants