Because MSYS2 executables can be launched from command prompt (cmd.exe), I often use it.
However, I found a problem when I use ssh from command prompt.
The error message is:
Could not create directory '/home/USERNAME/.ssh'.
With the same reason, ssh cannot find the key files and thus I cannot use ssh from command prompt.
Are there any solution?
The version shown by "ssh -V" is "OpenSSH_7.1p2, OpenSSL 1.0.2h 3 May 2016".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
also, make sure you have keys generated. Open an msys prompt and run:
ssh-keygen -A
From: H.Hiro(Maraigue) [mailto:maraigue@users.sf.net]
Sent: Saturday, July 16, 2016 11:02 PM
To: [msys2:discussion]general@discussion.msys2.p.re.sf.net
Subject: [msys2:discussion] ssh cannot create .ssh directory when called
from command prompt
Because MSYS2 executables can be launched from command prompt (cmd.exe), I
often use it.
However, I found a problem when I use ssh from command prompt.
The error message is:
Could not create directory '/home/USERNAME/.ssh'.
With the same reason, ssh cannot find the key files and thus I cannot use
ssh from command prompt.
Are there any solution?
The version shown by "ssh -V" is "OpenSSH_7.1p2, OpenSSL 1.0.2h 3 May 2016".
Thanks,
It's a possible alternative, but, honestly, I don't want to change the command...
And, in addition, I want to know why this doesn't work via command prompt.
Last edit: H.Hiro(Maraigue) 2016-07-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
(via command prompt)> ssh-keygen -A
ssh-keygen: generating new host keys: RSA Saving key "/etc/ssh_host_rsa_key" failed: No such file or directory
ssh-keygen: generating new host keys: DSA Saving key "/etc/ssh_host_dsa_key" failed: No such file or directory
ssh-keygen: generating new host keys: ECDSA Saving key "/etc/ssh_host_ecdsa_key" failed: No such file or directory
ssh-keygen: generating new host keys: ED25519 Saving key "/etc/ssh_host_ed25519_key" failed: No such file or directory
(via MSYS2 shell)> ssh-keygen -A
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
Perhaps, path name is not correctly converted when MSYS2 app is launched from command prompt. But, if it is true, why what is happened?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Because MSYS2 executables can be launched from command prompt (cmd.exe), I often use it.
However, I found a problem when I use ssh from command prompt.
The error message is:
Could not create directory '/home/USERNAME/.ssh'.
With the same reason, ssh cannot find the key files and thus I cannot use ssh from command prompt.
Are there any solution?
The version shown by "ssh -V" is "OpenSSH_7.1p2, OpenSSL 1.0.2h 3 May 2016".
Try:
c:\msys64\usr\bin\bash.exe -c "/usr/bin/ssh <user>@
"also, make sure you have keys generated. Open an msys prompt and run:
ssh-keygen -A
From: H.Hiro(Maraigue) [mailto:maraigue@users.sf.net]
Sent: Saturday, July 16, 2016 11:02 PM
To: [msys2:discussion] general@discussion.msys2.p.re.sf.net
Subject: [msys2:discussion] ssh cannot create .ssh directory when called
from command prompt
Because MSYS2 executables can be launched from command prompt (cmd.exe), I
often use it.
However, I found a problem when I use ssh from command prompt.
The error message is:
Could not create directory '/home/USERNAME/.ssh'.
With the same reason, ssh cannot find the key files and thus I cannot use
ssh from command prompt.
Are there any solution?
The version shown by "ssh -V" is "OpenSSH_7.1p2, OpenSSL 1.0.2h 3 May 2016".
ssh cannot create .ssh directory when called from command prompt
https://sourceforge.net/p/msys2/discussion/general/thread/fb1f365d/?limit=2 5#08d9
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/msys2/discussion/general/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Thanks,
It's a possible alternative, but, honestly, I don't want to change the command...
And, in addition, I want to know why this doesn't work via command prompt.
Last edit: H.Hiro(Maraigue) 2016-07-21
(via command prompt)> ssh-keygen -A
ssh-keygen: generating new host keys: RSA Saving key "/etc/ssh_host_rsa_key" failed: No such file or directory
ssh-keygen: generating new host keys: DSA Saving key "/etc/ssh_host_dsa_key" failed: No such file or directory
ssh-keygen: generating new host keys: ECDSA Saving key "/etc/ssh_host_ecdsa_key" failed: No such file or directory
ssh-keygen: generating new host keys: ED25519 Saving key "/etc/ssh_host_ed25519_key" failed: No such file or directory
(via MSYS2 shell)> ssh-keygen -A
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
Perhaps, path name is not correctly converted when MSYS2 app is launched from command prompt. But, if it is true, why what is happened?