Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8812285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:34:15+00:00 2026-06-14T03:34:15+00:00

I am trying to setup my git workflow (to deploy automatically my node.js app

  • 0

I am trying to setup my git workflow (to deploy automatically my node.js app when I push).
I have tried multiple things and end up doing this : http://toroid.org/ams/git-website-howto

I managed to make this method work but I have one problem left :
I am in the list of authorized_keys of my git and root users so I can login via SSH to these users.
But when I do a git pull, my computer tries to ssh using its current user to the server. That means that it searches on my server a user which has the same login as my local one (which doesn’t exist)

If I am logged locally as root, it connect as root to the distant server and works. Otherwise, it tries a user that doesn’t exist there and doesn’t work.

Not sure if I explained this well… Sorry if this is not. Anyway if anyone know how to fix this and make me able to use git without having to create a distant user for each people of my team it would be cool 🙂
Oh and my client is OS X and server Ubuntu

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:34:17+00:00Added an answer on June 14, 2026 at 3:34 am

    I’m not entirely sure if I understood you correctly, but you can set the username directly when specifying the URL of the remote.

    For example on most Git hosting sites, you are supposed to use the user git when connecting via SSH. This allows them to create only a single user they have to maintain while putting all authorization details behind that.

    So a usual remote URL on GitHub for example looks like this: git@github.com:user/repository. This is the long form of ssh://git@github.com/user/repository.

    So when you set your remote, when cloning, or afterwards, just include your username there and Git will use it when connecting via SSH:

    git clone git@myserver:/path/to/repository
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to setup Fabric so that I can automatically deploy my Django app
I have been trying to setup git for our web development team unsuccessfully. Some
We are trying to setup an automated deployment environemt with Git/Github. We have 3
I have a user 'git' that owns a git repository. I'm trying to setup
Hello I am new to Git and trying to setup server part and client
I'm trying to use git behind a proxy and i have set up the
I was trying the Perfect Workflow, with Git, GitHub, and SSH , and i
I'm trying to setup a Git repo on my local machine for work that
I'm trying to setup my Rails app on Linode and I'm at the stage
I'm trying to setup CodeCompare as my git merge/diff tool, however I keep getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.