[Solved]How to use proxy for git SSH?

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[Solved]How to use proxy for git SSH?

Postby gaojicainiao » Aug 7th, '23, 16:56

I tried to study and configure
Code: Select all
~/.ssh/config
but the console always says:
Code: Select all
Bad owner or permissions on /home/user/.ssh/config

when pushing.
Last edited by gaojicainiao on Aug 9th, '23, 03:42, edited 1 time in total.
gaojicainiao
 
Posts: 50
Joined: Feb 19th, '22, 16:11

Re: How to use proxy for git SSH?

Postby doktor5000 » Aug 7th, '23, 17:11

When "pushing" what exactly, what command do you run ? In general ssh is pretty strict about permissions on some files.
Here's a quote from the man-page
man ssh_config wrote:Files
~/.ssh/config
This is the per-user configuration file. The format of this file is described above. This file is used by the SSH client. Because of the potential for abuse, this file must have strict permissions: read/write for the user, and not accessible by others.

Default umask is 022 or 027 or 077 depending on your security level so a regular file is usually created with 0644 permission which is too much - ~/.ssh/config should only have 0600 permissions, same as the other files in /.ssh/
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18225
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to use proxy for git SSH?

Postby gaojicainiao » Aug 9th, '23, 03:42

Thank you!
gaojicainiao
 
Posts: 50
Joined: Feb 19th, '22, 16:11


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest