Hi
I set it up remotely so that I can work at home.
The remote PC is created on a mac in the same way as the company's environment.
Usually, you connect to ssh from your company's Windows PC and type the global IP of the other server.I am thinking of connecting to ssh on my Mac and accessing it using the private key I use in Windows.
Is it possible to connect normally?
Additional 1
I was able to connect it.The reason for the connection was that the copied id_rsa
file had different permissions.It's connected when it's 600.
Like this
ssh-i through /.ssh/id_rsa [email protected]
Can't you make it shorter because it's long?
Also, we need to think about security, so we need to increase the key.
SSH protocols do not depend on environments such as Windows or Mac, so you can access them from your Mac using the same private key.
But I don't really recommend it because it's hard to guarantee that Windows won't be able to access it in the future (I want to disable the key pair, but if you disable it in this situation, Mac won't be able to access it either).There is also a question of how to safely move the private key from Windows to the Mac.
Therefore, it is more convenient to create a new key pair for the Mac and use the private key.For example, if you no longer use the Mac in the future, or if you lose your Mac, you can just disable that key pair.
© 2024 OneMinuteCode. All rights reserved.