Skip to content

git dot ssh directory location #2016

Closed
Closed
@duaneellissd

Description

@duaneellissd

Problem statement:

Case (1) When my machine is issolated from the corporate network, my home directory is: c:\users\NAME

Case (2) When my machine is connected to the corporate network, my home directory is: j:
which is by company policy and those above me will not change this.

This means my "$HOME/.ssh" and thus KEYS dynamically move every time

If I am attached to the network, and open a BASH prompt... HOME = the J drive.
If I detach from the network (ie: go into a conference room with laptop)
Or if I go home at the end of the day ...

When I open my laptop back up and launch a second BASH shell
I will have two different HOME directories.

And for example if there are things in your path, ie: $HOME/bin - and that HOME directory is gone...
painful things happen (extreme sluggish ness, etc)

I have tried setting "HOME=/c/users/NAME" in the file /etc/profile
and if I later use the command: ls -l $HOME it works

But when I launch SSH-KEYGEN or any other SSH tool,
It seems to ignore the HOME variable and tries to search the wrong place for my ssh dir

it is very frustrating.

Suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions