Questions tagged [ssh]
A network protocol that allows data to be exchanged using a secure channel between two networked devices
150
questions with no upvoted or accepted answers
10
votes
0
answers
2k
views
Configuring an SSH tunnel with Transmit
Is there any way to configure Transmit so that it connects to an SFTP server through some SSH tunnel? (without having to launch the SSH tunnel via command line)
E.g., with WinSCP on Microsoft Windows,...
5
votes
0
answers
291
views
How to configure Xcode to fetch swift dependencies over ssh using a private key which is stored on a Yubikey ( HSM , gpg --card-status )
Problem currently is that I find no way to simply configure or instruct Xcode to check out source code or dependencies over git+ssh using ssh agent.
Does Xcode at all supports using the ssh-agent?
...
4
votes
0
answers
161
views
Update macos version over ssh
Previously it was possible to update macos and restart it to finish updating with:
sudo softwareupdate -iaR
But after updating to Big Sur this is no longer possible as running the above will not ...
4
votes
0
answers
1k
views
Keep alive SSH connection with server in MacOs Mojave
In El Captain, to maintain active a SSH connection you should edit ~/.ssh/config file to add your additional rules.
nano ~/.ssh/config
To maintain active for 1 hour you should add:
Host *
...
4
votes
0
answers
165
views
iOS Cannot SIGINT or Ctrl+C when SSH'ed into it
I have a jailbroken iPhone that I often SSH into. For some reason, I am unable to Ctrl+C a foreground process or kill -INT a background process when said process is started in an SSH session, but I ...
4
votes
0
answers
1k
views
headless ssh key password from keychain
On MacOS 10.12 Sierra (or/and OS X 10.11 EI Capitan) how can one use the passwords for ssh keys stored in the keychain headless?
If one ssh-es in and left a local session running one can see ssh-...
4
votes
0
answers
148
views
How should one correctly copy public and private keys from one mac to another?
I am aware of solution for linux here.
How should one correctly copy public and private keys from one mac to another?
4
votes
0
answers
8k
views
SSH'ing with just a machine name on internal network: nodename nor servname provided, or not known
Yesterday I was able to ssh into my development box by using the machine name. Today, I can't. I can nslookup and use chrome to navigate to my box using just the machine name. ping and ssh do not ...
3
votes
0
answers
838
views
MacOS Monterey on M1 Macbook SSH limitations
I have a brand new M1 Max Macbook Pro running Monterey.
I also have an Intel Macbook running Catalina that I migrated to this M1 Macbook from.
Finally, I also have a Linux laptop -- this will become ...
3
votes
1
answer
165
views
Mac does not finish rebooting, can't remote connect
I have a Mac Mini, M1, which I use remotely via SSH / VNC.
From time to time I need to issues a reboot to the machine.
After rebooting however, I am unable to establish an SSH connection as all I get ...
3
votes
0
answers
185
views
sshd stops working on Big Sur after a while when accessible from the Internet
My sshd is configured to accept only public key authentication and my ISP router forwards the port 22 to my MacPro so I can access it from anywhere using Internet.
This has worked for years.
Since I'...
3
votes
0
answers
1k
views
How do I use ssh agent on MacOS Catalina like OS X El Capitan used to?
I recently upgraded from OS X El Capitan to MacOS Catalina. I am accustomed to keeping my login session open for an entire week, and I was able to use a passphrase-protected ssh key by entering the ...
3
votes
0
answers
2k
views
Killed: 9 error while running ssh on Mojave
I am trying to connect via ssh to the remote GitHub server using Mac OS Mojave.
I generated the Key pair and when I execute the following command in bash:
ssh -T git@github.com
I get this error:
...
3
votes
0
answers
105
views
How to reset SSHD config to vanilla / system default settings on 10.13?
I'm having some really strange issues where workstations can no longer perform password-less (key based) ssh login to one particular workstation on macOS 10.13 now. All other workstations can use ...
3
votes
0
answers
5k
views
SSH to Mac port 22: Connection refused
MacOS 10.12.6
I have port forwarding in my Airport correctly configured to forward connections on port 22 of my public IP address to port 22 of my statically-assigned 10.0.1.200 MacOS. I've set the ...
3
votes
0
answers
493
views
Can't UsePrivilegeSeparation sandbox with Homebrew sshd
With OSX 10.9.5, and using the latest Homebrew OpenSSH, which at time of writing is OpenSSH_7.1p2/OpenSSL 1.0.2f, I must set the following in /usr/local/etc/ssh/sshd_config:
UsePrivilegeSeparation ...
3
votes
0
answers
555
views
OS X 10.10 default username and password?
Is there a default username/password for brand new OS X installs that have yet to go through the initial setup process?
I have several headless macs already racked, but no display set up for them, ...
3
votes
0
answers
1k
views
SSH to device via USB
When I try to SSH over USB to my device running linux, I get "ssh: connect to host 10.90.1.2 port 22: Network is unreachable"
Mind you, I can run the same command "ssh root@10.90.1.2" on my linux ...
3
votes
0
answers
279
views
X forwarding application shows blank window after one successful load
I'm running into a strange issue trying to forward an application from a remote Linux server over X (through ssh).
The application (it is a java application---a commercial program, not my own) seems ...
2
votes
1
answer
85
views
Automatic log each session from Terminal
Just moved off from windows into a Mac. I used to use Putty and it has a feature of logging sessions into a folder so everything that happens (stdin/out) goes also to a folder for historic record.
I ...
2
votes
0
answers
172
views
How To Establish A Persistent SSH
At home I have a 2017 iMac running Big Sur and a couple of Raspberry Pi 4s on Buster. At my condo I have a 2010 MacBook and two more Pi 4s on Buster. The machines at the condo are behind a double NAT. ...
2
votes
0
answers
66
views
Storing SSH passphrases in the login keychain instead of Local Items
If I:
Use UseKeychain yes in ~/.ssh/config
Use ssh-add -K
My SSH key passphrase is stored in my keychain as expected, however, when I check Keychain Access, the stored passphrase is in my iCloud/...
2
votes
0
answers
40
views
Unable to ssh over internet
I'm trying to ssh into a Linux server I run and I'm having a weird issue where I can ssh over the internal network but not over the internet. Over the internet, the ssh connection hangs at "...
2
votes
0
answers
755
views
OpenVPN to home network connections not working on macOS Big Sur
I'm using PIVPN with OpenVPN to connect to my home network anywhere in the world.
I have three profiles, one for my iPhone and one for my MacBook Pro and one for a windows laptop.
When I connect to my ...
2
votes
0
answers
550
views
SSHd on macOS Catalina 10.15.3 (19D76)
I have SSH enabled (by checking remote login in Sharing settings).
I have also secured it to be pubKey only etc.
Every time macOS updates it overwrites my /etc/ssh/sshd_config with absolute nonsense,...
2
votes
0
answers
3k
views
How to force a macOS user to change their password when they log in over SSH?
I am setting up a Mac Mini for use as a server in our office. I am trying to set in place a reasonable security policy. Currently, I am struggling to accomplish the following:
How can I make a user ...
2
votes
0
answers
390
views
Best brute-force prevention for Mac OS X 10.13 High Sierra
I am planning to open up port 22 on my router to my iMac so I can login remotely. Login is required and allowed for only the admin user. The password is very secure--over 30 characters long. I'm not ...
2
votes
0
answers
267
views
Why won’t ssh-add -K save my passphrase in the keychain?
I have not been able to save my ssh passphrase to the keychain since upgrading to MacOS Sierra. I understand how to use the ssh-add -K flag and the UseKeychain configuration option, and my coworkers ...
2
votes
0
answers
665
views
Why can't I access HTTPS sites through my iPhone's hotspot?
I can access HTTP and HTTPS sites from the iPhone without any problems. However, when I use the iPhone as a hotspot and connect my laptop to the it, I can't access HTTPS sites from the laptop.
It's ...
2
votes
0
answers
269
views
Running an AppleScript on a remote computer using ssh
How would I execute an AppleScript that is saved on my computer on a remote computer?
2
votes
0
answers
46
views
Can't copy framework to the iPhone filesystem on iOS 10
I am trying to copy RevealServer.framework to /System/Library/Frameworks using Filezilla (because openssh isn't compatible with ios 10).
But I get an error saying that the volume is read only.
I am ...
2
votes
0
answers
121
views
Too strict permissions checking in Mac OS
After long debugging, I found why I can not login to my MacOS machine with ssh:
Authentication refused: bad ownership or modes for directory /Users/myuser/projects
The problem is that I track my ....
2
votes
0
answers
2k
views
Configuring an SSH tunnel with Forklift
Is there any way to configure ForkLift so that it connects to an SFTP server through some SSH tunnel? (without having to launch the SSH tunnel via command line)
E.g., with WinSCP on Microsoft Windows,...
2
votes
0
answers
754
views
Something has taken over Little Snitch?
Due to sad neglect, I own the computer from the exorcist. I finally looked last night and there were 80 sshd connections from China. I blocked all traffic to/from sshd, and now that sshd is linked ...
2
votes
0
answers
638
views
SSH keybased authentication using smartcard
I originally posted this on Information Security but am hoping to attract an answer here since this is OSX specific.
So I'm fairly new to more secure forms of key management, I've been used to ...
2
votes
0
answers
2k
views
Wake On Lan Sleeping Mac Issues
I am having trouble with Wake On Lan for my Mac. I am trying to wake it over the internet from my phone so I can log in to TeamViewer and control it remotely. I don't know if it is my router that is ...
2
votes
0
answers
2k
views
X11 forwarding on Yosemite
X11 forwarding has stopped working since I upgraded to Yosemite. I tried reinstalling XQuartz, but that did not solve the problem. Has anyone faced the same problem?
EDIT:
I was finally able to fix ...
2
votes
0
answers
474
views
ssh asks for passphrase not keychain password after locking keychain
I'm using Yosemite and store the ssh passphrase in a separate keychain (not the login keychain). This all works fine as long as the keychain is unlocked. When I lock the keychain, I expected ssh to ...
2
votes
0
answers
60
views
How to set up a guest's public SSH key inside the DMZ?
Utilizing the console, how does one check to see if they are inside the DMZ? I believe I am, but need to ensure this before adding a guests public SSH key?
The second part of the question is how to ...
1
vote
0
answers
22
views
What's the best way to reboot a Mac that has crashed remotely (via SSH)? "shutdown -r now" or "sudo reboot" or?
For example, I often end up with a situation were I'm logged in over Apple Remote Desktop (Teamviewer etc.) and the computer crashes...ARD says reconnecting, but doesn't...
However, I can nearly ...
1
vote
0
answers
170
views
macOS: Documents folder not accessible from SSH
Using SSH from another computer into macOS Monterey using my own user and chdir to ~/Documents I get:
% ls -al ~/Documents
total 0
ls: /Users/user/Documents: Operation not permitted
When I SSH to ...
1
vote
0
answers
504
views
"client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0" - SSH error - MacOS 12
I'm getting the error client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0 during a ssh connection on the command line when the target host is known (already saved to the ...
1
vote
0
answers
13
views
How can I enable File Sharing & Remote Login from a utility or script?
I would like to leave File Sharing and Remote Login off normally, but be able to remotely turn them on if and when I need them. The commands to do this are easily found online.
sudo launchctl load -w ...
1
vote
0
answers
225
views
How can I use my SSH key with TouchID so that don't have to type in my passphrase each time, but still required my finger print at each log in?
I am trying to use my ssh key with touchID. As others suggested here, I ran
ssh-add -K ~/.ssh/[my-private-key] and modified my .ssh/config with
Host *
UseKeychain yes
AddKeysToAgent yes
...
1
vote
0
answers
85
views
Edit lots of profiles in iTerm2
A longtime user of Terminal on the Mac, a colleague recently recommended iTerm2. I had a play around with it, and the same colleague gave me his Profiles JSON file. In vim, I was able to do a ...
1
vote
0
answers
189
views
VPN client software for macOS which allows for split tunnelling incoming SSH connections
As @bmike explained in Cannot connect to Mac (Big Sur) running SSH server while connected to VPN a VPN client allowing for split tunnelling is required in order to connect to a host via SSH which has ...
1
vote
0
answers
47
views
redirect safari traffic through ssh
Hi I'm following this tutorial to redirect safari traffic through ssh,
https://helpdesk.eoas.ubc.ca/kb/articles/how-to-ssh-tunnel-a-connection-using-macos
which is first
ssh -D 8080 -N user@address
...
1
vote
0
answers
177
views
Whats the correct way to reboot a Mac which is managed by Apple Remote Desktop?
I have a headless 2012 Mac Mini running macOS Catalina which is managed with Apple Remote Desktop and ssh by my other MacBooks (running macOS Mojave).
The problem is that when I need to reboot the ...
1
vote
0
answers
1k
views
How can I use ssh -X on macOS Catalina? [Warning: untrusted X11 forwarding setup failed: xauth key data not generated]
How do I get ssh -X working on macOS Catalina (10.15)?
ssh -X linux_host works from another linux machine.
On a fresh install of macOS Catalina, I have installed MacPorts and xorg_server. However, ssh ...
1
vote
0
answers
107
views
Unwanted dash ("-") in implicit ProxyCommand from ProxyJump
Intro
When open an ssh URL scheme (ssh://[host]), the Terminal app will be launched to handle the request, and ssh is launched without a shell.
Symptom
In my case, if the host is configured to use ...