Can't Ssh Wtih Sierra For Mac
Many useful tools are included, such as the Apple LLVM compiler, linker, and Make.
The timeout means either you can't connect to the Mac at all, or it's not accepting traffic on port 22 (the SSH port) Some things to check - Have you checked your firewall is off on the mac? System Preferences - Security - Firewall.
You might have noticed that macOS Sierra doesn’t offer to store private key passphrases for SSH in your user keychain anymore. It doesn’t automatically add SSH identities from your keychain, either.
Result: you need to enter the passphrase for each of your SSH keys at least once per session, where previously you could enter it once and never type it again.
Given the security implications of making it too easy to open an SSH session without authenticating yourself, I can’t fault Apple for this. But if you’re a heavy SSH user, you might agree that it’s more painful to work with now.
Thankfully, there is a workaround. I’ve just added this to my ~/.profile
file:
Now, every time I open a terminal, ssh-add -l
is grepped for id_rsa.lkrms
. If it’s missing, ssh-add -A
is called to add SSH identities from my keychain. If id_rsa.lkrms
still hasn’t appeared, I will be prompted for my passphrase, and it will be stored in my keychain for future use.
I'm on Win10 / VS2015 update 3 enterprise. I want to connect to my MacBook pro (installed xamarin on that as well),
but my VS keep telling me : 'Unable to generate SSH keys for the user.'
Enable Ssh On Mac
What i've done up to now:
Can't Ssh Wtih Sierra For Mac Pro
- I've set remote login on my Mac.
- Disabled firewall on both side (windows and osx)
- checked xamarin logs
in the log file i've realized the 'Too many arguments' part for ssh-keygen. I've entered the same command into terminal window, got the same error message. By entering the path in '.', the command executed successfully.
It seems, that the path with the directory 'RaveAce 1' is invalid without ' and xamarin for VS cant put it into 's.
PLease help me solve this issue.
My logs:
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Information: 0 : [2016-07-03 19:08:22.6197] Disconnected from Mac MacBook-Pro-of-RaveAce.local (192.168.1.116)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Error: 0 : [2016-07-03 19:08:22.7784] Unable to generate SSH keys for the user.
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-07-03 19:15:16.5885] MacServer State transition from DisconnectedState to SshConnectingState on MacBook-Pro-of-RaveAce.local (192.168.1.116)
Xamarin.Messaging.Client.Ssh.SshCommandRunner Warning: 0 : [2016-07-03 19:15:21.9021] Failed to execute 'ssh-keygen -b 2048 -t rsa -f /Users/RaveAce 1/Library/Caches/Xamarin/XMA/Keys/2e4e4dfb-9cee-4295-82df-1f56af36ff78 -q -N 'c74e03cf-fcbf-48a8-a7c5-8b33f0d94504': ExitStatus=1
Xamarin.Messaging.Client.Ssh.SshCommandRunner Information: 0 : [2016-07-03 19:15:22.0656] MacServer State transition from SshConnectingState to DisconnectedState on MacBook-Pro-of-RaveAce.local (192.168.1.116)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Warning: 0 : [2016-07-03 19:15:22.2277] Too many arguments.
usage: ssh-keygen [-q] [-b bits] [-t dsa ecdsa ed25519 rsa rsa1]
[-N new_passphrase] [-C comment] [-f output_keyfile]
ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile]
ssh-keygen -i [-m key_format] [-f input_keyfile]
ssh-keygen -e [-m key_format] [-f input_keyfile]
ssh-keygen -y [-f input_keyfile]
ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile]
ssh-keygen -l [-v] [-E fingerprint_hash] [-f input_keyfile]
ssh-keygen -B [-f input_keyfile]
ssh-keygen -D pkcs11
ssh-keygen -F hostname [-f known_hosts_file] [-l]
ssh-keygen -H [-f known_hosts_file]
ssh-keygen -R hostname [-f known_hosts_file]
ssh-keygen -r hostname [-f input_keyfile] [-g]
ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point]
ssh-keygen -T output_file -f input_file [-v] [-a rounds] [-J num_lines]
[-j start_line] [-K checkpt] [-W generator]
ssh-keygen -s ca_key -I certificate_identity [-h] [-n principals]
[-O option] [-V validity_interval] [-z serial_number] file ..
ssh-keygen -L [-f input_keyfile]
ssh-keygen -A
ssh-keygen -k -f krl_file [-u] [-s ca_public] [-z version_number]
file ..
ssh-keygen -Q -f krl_file file ..
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Information: 0 : [2016-07-03 19:15:22.5989] Disconnected from Mac MacBook-Pro-of-RaveAce.local (192.168.1.116)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Error: 0 : [2016-07-03 19:15:22.7580] Unable to generate SSH keys for the user.