git bash in Windows 7 - intellij-idea

I work on IntelliJ-idea on Windows 7.
I want to work on my program in the command line - git bash,
but I get errors
I tried to do pull then I got this error
$ git pull
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I saw a solution in Git - Permission denied (publickey)
but they don't wrote about windows.
when I do push I asked about passphrase but when I write it I get an error
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I have the correct access because I can do pull, push.. from the folder (right click TortoiseGit..)
please your help
thank you

So, there is no ssh publickey generated.
You must generate and register your rsa keys for github. Follow official guide.

Related

Gitlab - Push with to remote not working

I installed Gitlab 6 on my MBP running OS X 10.8.5 and works fine. I can create projects, users, commit, push ... But only from there.
I try to push project from my iMac ( I do git config, init, add, commit), I generated also the ssh keys.
When a test the connection : ssh -T git#my_server it gives "Welcome to Gitlab, Anonymous".
but when I issue the push -u origin master I've got :
Blockquote
Access denied
Fatal: Could not read from remote repository
Please make sure you have the correct access rights and the repository exists.
Blockquote
Is it something relating with SSH or with Gitlab itself ?
In Gitlab 6 a added a 2d key to the project, my public key (generated on the iMac).
On my MBP I added the content of the id_rsa.pub (iMac) to the authorised_keys and known_hosts files (MBP)
Thank.

rsync mkdir failed permission denied

I'm running PuTTy ssh on windows in the hope to copy a file from a remote server.
The command I used is below:
rsync -avz user#server:/home/user/imitate/tool /home/tool
But I received the error:
rsync: mkdir "/home/tool" failed: Permission denied (13)
rsync error: error in file IO (code 11) at main.c(605) [Receiver=3.0.9]
I'm totally new to this and I have no idea what is happening. So I logged into an account on a remote server using ssh, and want to copy files from that remote server to the laptop I'm using. What should I do?
you cannot write to /home/tool locally on your windows box. either run the command with more privileges or download to another directories where you have write permissions.

dotcloud push on cygwin fails with "rsync error: unexplained error (code 255)" (similar with git and hg)

Though I have followed the usual steps for using the dotCloud CLI under Cygwin, dotcloud push fails in all cases: --rsync, --hg, and --git.
I am on Windows 8 and Cygwin.
How can I push successfully?
Sample output:
me#host /cygdrive/d/project
$ dotcloud push --rsync
==> Pushing code with rsync from "./" to application myapp
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at /home/lapo/package/rsync-3.0.9-1/src/rsync-3.0.9/io.c(605) [sender=3.0.9]
me#host /cygdrive/d/project
$ dotcloud push --git
Permission denied (publickey,password).r from "./" to application myapp
fatal: The remote end hung up unexpectedly
me#host /cygdrive/d/project
$ dotcloud push --hg
==> Pushing code with mercurial from "./" to application myapp
abort: no suitable response from remote hg!
Error: Mercurial returned a fatal error
You may be running into a bug in Cygwin's group permissions. Vineet Gupta gives a workaround in his blog. The problem comes from the very strict permissions expected by ssh around the keys, and the solution is to set the permission on the ssh key properly (to 600, rw by owner only). Cygwin seems to need the group to be added manually.
Updating the steps to get the dotCloud CLI installed, including setting the permissions, leads to:
Start the Cygwin Setup.
Select default choices until you reach the package selection dialog.
Enable the following packages:
net/openssh
net/rsync
devel/git
devel/mercurial
python/python (make sure it’s at least 2.6!)
web/wget
After the installation, you should have a Cygwin icon on your desktop. Start it: you will get a command-line shell.
Download easy_install
wget http://peak.telecommunity.com/dist/ez_setup.py
Install easy_install
python ez_setup.py
You now have easy_install; let’s use it to install pip:
easy_install pip
Now install dotcloud (the CLI)
pip install dotcloud
Set up the CLI with your credentials. This will also download the ssh key.
dotcloud setup
New Step Update the permissions on your dotCloud key:
chgrp Users ~/.dotcloud_cli/dotcloud.key
chmod 600 ~/.dotcloud_cli/dotcloud.key
Now you should be able to dotcloud push
If you have multiple dotCloud accounts, then you will need to repeat this process for each account, since each account has its own key. Also note that you shouldn't have to set these permissions manually, but it seems like the group ownership is sometimes the wrong default in Cygwin. Linux and OSX don't seem to show this problem, though the permissions must be 600 for all OSes, so it is worth checking.

fatal: unable to start /*/.repo/repo/main.py fatal: [Errno 13] Permission denied - on nfs mounted disk

i am trying to initialize a repo (for yocto development - but it seems to be using the same infrastructure as android).
since I lack space on the OS drive, I nfs mounted another disk (filesystem is ext4 but that probably is irrelevant on the mount-client side).
I try to initialize the repo with the command
./repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b dylan
and get the error
fatal: unable to start /mnt/lvm/public/.repo/repo/main.py
fatal: [Errno 13] Permission denied
Permissions are fine on the disk. manually I can do file operations without a problem.
Is it impossible to have the repo on an nfs drive (even at the penalty of slower processing)?
Thank you for your help
You need to download the the source code from CygWin not from windows Git. To be able to do that make sure to include curl in the bin directory of Cygwin, and install python within Cygwin packages. Then repeat the steps you have used before inside cygwin terminal.

Gitosis clone error: Unable to read config file. Permission denied

I tried to clone a gitosis repository and got the error:
ERROR:gitosis.app:Unable to read config file: [Errno 13] Permission denied: '/sr
v/gitosis/.gitosis.conf'
fatal: The remote end hung up unexpectedly
The permission of gitosis.conf is set to 755. I also checked the folders and make sure that owner is gitosis. I cannot see anything wrong with permission. What could be the reason for this error?
Thanks. Yes, the repositories directory is not owned by gitosis. Cloned successfully after updating it.
"su - git" to git user and
cat the gitosis.conf file.
if you cannot see the content of the file.
then you need to fix the ownership and permmisson of file or
the path nodes along the path of the file.
Bill Z