Questions tagged [ssh]
A network protocol that allows data to be exchanged using a secure channel between two networked devices
930
questions
1
vote
2
answers
52
views
"Command not found: mosh-server" when trying to connect to macOS server running mosh
I'm trying to connect to an M2 Mac mini with mosh.
However, when connecting with mosh <hostname>, I get an error zsh:1: command not found: mosh-server:
$ mosh <username>@<hostname> ...
1
vote
1
answer
36
views
SSH from Macbook Pro to Fedora laptop times out in Terminal app
SSH from Macbook Pro to Fedora laptop times out consistently, when using SSH command from ZSH (Terminal app). Yet I'm able to connect to the Fedora laptop using my smartphone or even an SSH app on ...
0
votes
0
answers
18
views
Bizarre Ansible (and SSH) behavior
I'm experiencing two weird behaviours, out of nowhere, without any intentional change on my part:
Ansible (ansible all -i foo, -m ping) not only started to ask for the SSH key's password, but also ...
1
vote
1
answer
69
views
Terminal stuck at every launch until Ctrl+C
Every time I successfully login to a remote server using ssh, the zsh terminal would stuck unless I do a Ctrl+C. There's no problem with the ssh login. It also requires three Ctrl+C after I type exit ...
1
vote
1
answer
67
views
Mac to Raspberry Pi: Intermittent Broken Pipes
When SSH'ing into my Raspbery Pi, I'll be typing away when suddenly the prompt will freeze. Then after 20 seconds or so, I get a client_loop: send disconnect: Broken pipe error. The time before I get ...
2
votes
0
answers
72
views
Why does code-signing identity look revoked when using SSH, but good when using Terminal app?
Problem
If I SSH to the mac remotely from another computer, then view valid code-signing identities, I get CSSMERR_TP_CERT_REVOKED, as seen below.
# executing remotely in an ssh session
% security ...
1
vote
0
answers
220
views
sshd: fatal: Access denied for user nagios by PAM account configuration [preauth]
I usually log in on my machine using two accounts corti and nagios via SSH.
After a reboot, during several hours, I am not able to log in remotely with nagios (the other one works).
In the logs I see:
...
4
votes
1
answer
480
views
Grant permissions from the command line
I want to grant a permission to an application (Cliclick, needs permission to control the computer), but currently only have ssh access to the machine I'd like to do this on. Is there any way to ...
0
votes
1
answer
98
views
I can't clone projects from my companys git from my new mac
2 days ago I replace my pc with a new mac and trying to set it up for my work, but I can't clone a project from my company's local repository. I don't know what to do at this point can u guys help ...
3
votes
2
answers
207
views
ssh: connection closed
I can connect to my Mac Mini using SSH without any problem:
remote_machine$ ssh corti@mymacmini
mymacmini$
By using another user I get
remote_machine$ ssh -i /etc/nagios/.ssh/id_rsa -l nagios ...
0
votes
1
answer
48
views
Python can't access Keychain when executed through SSH but it works from a local terminal?
I use Pushbullet CLI to send Pushbullet pushes from the terminal. It works fine when I execute it locally but when I ssh into the machine where it is installed and try to send a push I get a Python ...
0
votes
1
answer
90
views
Approve little snitch (alert mode) popup via SSH
Is it possible to approve a new little-snitch (alert mode) popup remotely to unblock the suspended process ?
In detail:
I have an SSH / VPN from, from my iPad to the Mac. The mac is home, not ...
1
vote
1
answer
281
views
Why does macOS start ssh-agent with -l?
I'm looking to add a default timeout to the ssh-agent run by macos at startup. So far I've determined that the file that runs this is /System/Library/LaunchAgents/com.openssh.ssh-agent.plist which ...
2
votes
1
answer
147
views
iTerm has full disk access but “ls: Operation not permitted” on remote system
I've read about this issue. I see SIP and TCC are in play. I have 2 Mac laptops both running Sonoma. On each, iTerm has full disk access and SIP enabled.
Local to each of them in iTerm I can access ...
1
vote
1
answer
579
views
Is macOS vulnerable to the XZ-vulnerability? [duplicate]
The current state of knowledge seems to suggest that macOS was so far not vulnerable to the recent XZ attack - but I find this hard to establish.
Is macOS really save even if vulnerable liblzma ...
13
votes
3
answers
6k
views
With the recent security issue with xz, what should we do before using Homebrew again?
Ars Technica's March 30, 2024 Backdoor found in widely used Linux utility breaks encrypted SSH connections includes the following:
Several people, including two Ars readers, reported that the ...
0
votes
1
answer
33
views
Cannot access web app on LAN when hosted on mac
I have a web app on port 3333 on my mac os (ventura). This mac has a static internal network IP (192.168.1.234). I want to access this web app from another machine on the. LAN via 192.168.1.234:3333. ...
0
votes
0
answers
48
views
Is there any way to use osascript to run AppleScripts from an ssh session using a MacPorts installation of OpenSSH?
I'm running macOS 13.6.5, and have installed OpenSSH via MacPorts since I want to be running the latest version of OpenSSH. However, one downside to using a MacPorts installation of OpenSSH is that ...
1
vote
0
answers
32
views
How to turn on MacBook automatically when it receives power again (and battery was drained)?
I would like to use my old MacBook Air (2015) as a server-like machine so that I can connect remotely to it via SSH. I managed to do this, however, I am looking forward how to be able to power it on ...
0
votes
0
answers
20
views
Wrapper around ssh causes AppleEvent handler to fail
I have the script that I've pasted lower down in my path and named ssh. The idea is that it changes the colour of the terminal based on which host I'm ssh-ed into. This worked fine for a long time, ...
1
vote
0
answers
212
views
How do I communicate with a host USB device through Mac's Terminal?
I have a Siglent SPD3303X-E power supply that I am attempting to interface with. I am running a Macbook Pro with OS Sonoma 14.3.1. I've read online about what SCPI commands to send to the power supply,...
0
votes
0
answers
31
views
Despite telling ssh to prompt only once on failure, I get two prompts from macOS servers - how do I prevent that
I am getting asked twice to enter a password even though, if the password is wrong, I should only get asked once when using the -o NumberOfPasswordPrompts=1 option.
Try this:
On a Mac that has SSH ...
0
votes
0
answers
60
views
SSH Into mac from parallels Win
I recently bought macbook pro with m3 pro. Because some work stuff require windows api I have to use parallels win for arm to do some work, and I need to ssh back to mac.
I have enabled remote login ...
3
votes
2
answers
137
views
strange issue with aliases for zsh
I'm trying to create an alias in my .zshrc file for an SSH connection. The full command is this:
ssh -t pi@raspi5 "cd ~/C-progs/c_trials; exec \$SHELL -l"
The command is designed to open an ...
0
votes
0
answers
44
views
FileZilla stopped using keys from ssh-agent on macOS
I recently set up SSH access to my web servers on my Mac by following GitHub's documentation for Generating a new SSH key and adding it to the ssh-agent. After that, I installed FileZilla and the ...
1
vote
0
answers
149
views
ssh-agent asks for passphrase on reboot even with AddKeysToAgent and UseKeychain enabled
I have the following configuration in ~/.ssh/config:
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
I have a single SSH private key and I've even tried adding it ...
0
votes
0
answers
55
views
How to prevent auto logout from Visual Studio code?
Connect to the host using SSH at the specified IP address @Visual Studio Code.
Issue: There is a recurring problem where, after approximately 30-40 minutes, the system automatically logs out from the ...
1
vote
0
answers
61
views
scp/rsync hangs when trying to connect to a very old Mac
I am trying to transfer files from an ancient Mac (OS 10.5.8) that has not been upgraded for years to a new (Ventura 13.3.1) machine and find that scp and rsync don't work. The old Mac is visible in ...
1
vote
0
answers
64
views
Cron and launchd rsync/ssh job do not work when screen is locked
I have implemented a bash script to perform a backup to a remote server over ssh using rsync. Running the script in the terminal works correctly. I then scheduled a crontab job to run this script ...
3
votes
0
answers
348
views
Can't get X11 forwarding working with XQuartz
I'm on Ventura. I'm trying to log in to a remote Linux machine with X11 forwarding enabled. I followed these steps:
Install XQuartz (from the downloadable package on their website, not from brew).
...
0
votes
0
answers
39
views
ISL Light macOS remote connection via SSH
I am trying to establish a new tunnel on ISL Light app from ISL Online. I have an account already and on when I log in, in the Computers window I can access a remote server that I am assigned to have ...
0
votes
0
answers
37
views
TMPDIR is not set in a new shell when using su
On a Mac running macOS 13.5, $TMPDIR is not set in a new shell. This is a multi-user machine, and it is unset for all users that are sued to, causing multiple issues since libraries may default to /...
0
votes
0
answers
37
views
Cannot switch to root after applying Account Policies
After running the following script, that applies some Account Policies I have lost the access to root account.
I took the script from Git
Executing command
sudo su -
Resulting in request of an old ...
0
votes
0
answers
109
views
Why would the same command produce different output when executed in Terminal vs. SSH
Apparently, this is a thing and I'd like to know why. I noticed this when I was trying to install the gitlab-runner CI client on an M1 Mac Mini running macOS 12.1 over SSH. I was following the ...
1
vote
1
answer
343
views
How to securely manage SSH passphrases via keychain?
Recently I had a long time mitigating possible risks occured due to malware I got on my Mac. Now I wiped the system and trying to figure out how to set up it in such way that when similar situation ...
1
vote
1
answer
218
views
How to run python script from remote?
I do have a python script which I am using locally in Terminal, works great. It makes use of Apple's iCloud / credentials so it must be run on my Mac.
Now I need to run the script from remote (a ...
1
vote
0
answers
475
views
MacOS Sonoma, How to enable sound recording (microphone permission) in ssh connection
We are running automated tests from command line. The tests are using a python library to control a sound card to play and record audio. The tests work fine when launched locally in the terminal of ...
0
votes
0
answers
204
views
How to create and configure a utun device from the terminal?
I want to create and configure a tun interface (utun device) using the command line that I can use with ssh -w. I tried ssh -w 0 and got "Tunnel device open failed. Could not request tunnel ...
2
votes
0
answers
2k
views
How can I mount a remote SSH folder on Mac without sshfs?
In the past I had used sshfs sshfs user@server:/remote_folder ~/local_mount and osxfuse (now macfuse).
However, sshfs seems to be deprecated and I can't find an alternative.
I tried using smbfs but ...
1
vote
1
answer
379
views
How do I put my public ssh key back to the correct folder on the terminal? [closed]
I can't access my login to my remote server which has my domain name stored to it. I believe because I accidentally saved the public key to my desktop instead of the file it's supposed to be in. And ...
2
votes
1
answer
136
views
How to pass file expansion patterns across an ssh/rsync connection
I'm new to macOS but I have some experience in Linux. Now I am encountering some problems with different styles of command lines between macOS and Linux and I hope someone can help me.
In Linux, if I ...
0
votes
0
answers
313
views
Has something changed in Ventura/recent version of MacOS with respect to ssh tunnels? Can't tunnel VNC nor SMB despite SSH working as expected
I connect ssh like this:
% ssh -L 1445:127.0.0.1:445 -L 15900:127.0.0.1:5900 -p 2216 -v myhost
Excerpt from the verbose log when connecting:
debug1: Local connections to LOCALHOST:1445 forwarded to ...
1
vote
1
answer
628
views
Cannot ssh into machine?
I have a Mac that for some reason I cannot manage to ssh into anymore. I'm completely stumped and am looking for ideas of what to try next (short of reinstalling the whole system). I've tried the ...
1
vote
1
answer
248
views
X ssh forwarding not working from a macOS 13.4.1 to Debian Linux 11
I have currently an issue about trying to get a SSH X forwarding connection from a macOS Ventura to a Debian Linux 11. I am using XQuartz 2.8.4 (2.8.5 failed in installation).
I don't know where the ...
0
votes
1
answer
104
views
How can I ssh -X from a non-macOS machine into a macOS machine and run X11 programs displaying on the non-macOS host?
I have a macOS machine running Catalina.
I have also have a Linux machine, running Ubuntu 20.04.
I want to ssh from the Linux machine to the Mac by a command such as
ssh -X user@macos-machine.
When I ...
3
votes
3
answers
256
views
How to SSH when current user cannot access identity file?
I wish to find a shell one-liner on macOS that runs a command on a remote machine via SSH with a different non-root user (say, joe), using an identity file that only joe can access. The following one-...
1
vote
1
answer
6k
views
SSH to Mac port 22: Connection refused - after Remote Login enabled
On my Macbook on Mac OS Ventura (aka macos 13.4) I enabled Remote Login in order to access this laptop via ssh:
I've set the Mac's System Preferences > Sharing > Remote Login to accept ...
0
votes
0
answers
39
views
How to copy files from a Mac in "Disk Sharing" mode to another Mac? [duplicate]
I have a borked Macbook Pro running apple silicon, and to recover files from it I've shared Macintosh HD in "Shared Disk" mode via startup options and connected it to a working mac with a ...
3
votes
1
answer
371
views
Run Safari over ssh (xquartz) from remote linux
I have a Mac Mini (2023, M2) and I would like to connect to it and run Safari remotely from a Linux laptop. I am not trying to connect to a Linux (or Windows) server from a Mac client, here the "...
0
votes
2
answers
735
views
Leave SSH daemon running permanently
I, for some reason, cannot seem to find a google search which actually answers this question. I have a mac, and I would like to have the ssh daemon running in the background at all times, so I can ssh ...