Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Naomi Freeman
STAFF
Naomi Freeman
Treehouse Guest Teacher

terminal login issues

I have started working somewhere. There are servers I've been given access to using a public key generated from my computer. However, while the ssh login seems to be fine at first, I can't actually grab the repo using this rsync. It wants a password I shouldn't need. The previous dev suggested my terminal is ignoring ssh? Is this even possible? How would I fix that?

Need to access this code :/

Thanks for your help!

Last login: Fri Jun 13 11:51:30 on ttys000

Naomis-MacBook-Air:summerspirit.github.io Naomi$ cd

Naomis-MacBook-Air:~ Naomi$ ssh naomi@svn.civicrm.ca

Last login: Fri Jun 13 09:56:56 2014 from 76-10-147-186.dsl.teksavvy.com

[naomi@emily ~]$ ls

community.socialinnovation.ca socialinnovation.ca

[naomi@emily ~]$ ls -alt

total 28

-rw-------. 1 naomi naomi 183 Jun 13 12:43 .bash_history

drwx------. 3 naomi naomi 4096 Jun 13 10:03 .

lrwxrwxrwx. 1 naomi naomi 35 Jun 13 10:03 socialinnovation.ca -> /var/www/vhosts/socialinnovation.ca

lrwxrwxrwx. 1 naomi naomi 45 Jun 13 10:02 community.socialinnovation.ca -> /var/www/vhosts/community.socialinnovation.ca

drwx------. 2 naomi naomi 4096 Jun 13 09:56 .ssh

drwxr-xr-x. 15 root root 4096 Jun 13 09:12 ..

-rw-r--r--. 1 naomi naomi 18 Jul 18 2013 .bash_logout

-rw-r--r--. 1 naomi naomi 176 Jul 18 2013 .bash_profile

-rw-r--r--. 1 naomi naomi 124 Jul 18 2013 .bashrc

[naomi@emily ~]$ mkdir yolo

[naomi@emily ~]$ cd yolo

[naomi@emily yolo]$ rsync -avz naomi@svn.civicrm.ca:/var/www/vhosts/socialinnovation.ca .

The authenticity of host 'svn.civicrm.ca (209.15.213.70)' can't be established.

RSA key fingerprint is 63:99:92:28:c3:dd:b8:eb:c0:ec:c5:3a:11:7a:0f:88.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added 'svn.civicrm.ca,209.15.213.70' (RSA) to the list of known hosts.

naomi@svn.civicrm.ca's password:

Permission denied, please try again.

naomi@svn.civicrm.ca's password:

Connection closed by UNKNOWN

rsync: connection unexpectedly closed (0 bytes received so far) [receiver]

rsync error: unexplained error (code 255) at io.c(600) [receiver=3.0.6]

[naomi@emily yolo]$

[naomi@emily yolo]$ rsync -avz naomi@svn.civicrm.ca:/var/www/vhosts/socialinnovation.ca .

naomi@svn.civicrm.ca's password:

Permission denied, please try again.

naomi@svn.civicrm.ca's password:

Permission denied, please try again.

naomi@svn.civicrm.ca's password:

Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

rsync: connection unexpectedly closed (0 bytes received so far) [receiver]

rsync error: unexplained error (code 255) at io.c(600) [receiver=3.0.6]

[naomi@emily yolo]$

[naomi@emily yolo]$ rsync -avz naomi@svn.civicrm.ca:/var/www/vhosts/community.socialinnovation.ca .

naomi@svn.civicrm.ca's password:

Permission denied, please try again.

naomi@svn.civicrm.ca's password:

Permission denied, please try again.

naomi@svn.civicrm.ca's password:

Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

rsync: connection unexpectedly closed (0 bytes received so far) [receiver]

rsync error: unexplained error (code 255) at io.c(600) [receiver=3.0.6]

[naomi@emily yolo]$

from the dev 3:00 PM (19 hours ago)

to me, I'm thinking that your mac is somehow configured to ignore your .ssh keys when connecting.

Baffling, but reminds me why I'm not trying to run a public server ...

2 Answers

You can tell rsync to use your ssh with '-e "ssh"' in your options.

So, try the following:

rsync -avz -e "ssh" naomi@svn.civicrm.ca:/var/www/vhosts/community.socialinnovation.ca .

You might also need to remove the naomi@, but not positive on that.