Questions tagged [ssh]

A network protocol that allows data to be exchanged using a secure channel between two networked devices

Filter by
Sorted by
Tagged with
1 vote
1 answer
37 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 ...
groknaut's user avatar
1 vote
1 answer
294 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 ...
fgysin's user avatar
  • 213
13 votes
3 answers
5k 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 ...
uhoh's user avatar
  • 1,738
0 votes
1 answer
19 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. ...
bcsta's user avatar
  • 111
0 votes
0 answers
38 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 ...
Bri Bri's user avatar
  • 2,436
1 vote
0 answers
27 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 ...
Ionică Bizău's user avatar
0 votes
0 answers
16 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, ...
thornate's user avatar
  • 101
1 vote
0 answers
61 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,...
JenkelandTonic's user avatar
0 votes
0 answers
24 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 ...
Thomas Tempelmann's user avatar
0 votes
0 answers
42 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 ...
PsyChonek's user avatar
1 vote
2 answers
63 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 ...
Seamus's user avatar
  • 4,547
0 votes
0 answers
22 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 ...
kataba's user avatar
  • 1
0 votes
0 answers
53 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 ...
kataba's user avatar
  • 1
0 votes
0 answers
38 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 ...
subbu's user avatar
  • 1
1 vote
0 answers
45 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 ...
TomR's user avatar
  • 13
1 vote
0 answers
42 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 ...
Alan M.'s user avatar
  • 11
3 votes
0 answers
180 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). ...
Jason C's user avatar
  • 171
0 votes
0 answers
34 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 ...
adriB's user avatar
  • 1
0 votes
0 answers
22 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 /...
slhck's user avatar
  • 2,274
0 votes
0 answers
27 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 ...
Papa Smurf's user avatar
0 votes
0 answers
82 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 ...
dandan78's user avatar
  • 165
1 vote
1 answer
148 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 ...
Arseniy Kulikov's user avatar
1 vote
1 answer
187 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 ...
Døner M.'s user avatar
  • 113
1 vote
0 answers
394 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 ...
japi1's user avatar
  • 11
0 votes
0 answers
116 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 ...
Trevor Dixon's user avatar
2 votes
0 answers
1k 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 ...
Julia MM's user avatar
1 vote
1 answer
100 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 ...
Wyatt L Grant's user avatar
0 votes
0 answers
49 views

SSH through OpenVPN on iPad

I have an iPad Air M1 and I am trying to SSH into a server at my university, which requires us to either be connected via Ethernet cable in a uni building or pass through a VPN (we use OpenVPN). a-...
kmf's user avatar
  • 1
2 votes
1 answer
107 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 ...
Jiaqing's user avatar
  • 21
0 votes
0 answers
271 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 ...
d-b's user avatar
  • 3,348
1 vote
1 answer
389 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 ...
Martin's user avatar
  • 138
0 votes
0 answers
153 views

Secure way to connect to VNC from iPad

've setup a VNC server in a computer and want to connect to if from another network. I first thought of doing port forwarding, but it did not work as I think for it to work I require to contact my ISP ...
Zaitam's user avatar
  • 1
1 vote
1 answer
221 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 ...
guizmo133's user avatar
0 votes
1 answer
82 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 ...
dan's user avatar
  • 15
3 votes
3 answers
233 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-...
upontu's user avatar
  • 33
1 vote
1 answer
4k 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 ...
ionescu77's user avatar
  • 246
0 votes
0 answers
37 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 ...
Empiromancer's user avatar
3 votes
1 answer
281 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 "...
AntonOfTheWoods's user avatar
0 votes
2 answers
441 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 ...
ExecutionByFork's user avatar
0 votes
0 answers
362 views

Run sshd from Homebrew instead of Ventura's

The ssh from Ventura 13.3.1 is rather old (OpenSSH_9.0p1); the version I installed from Homebrew is OpenSSH_9.3p1. The problem is: How can I achieve that sshd from Homebrew is run on startup instead ...
Christoph's user avatar
  • 101
0 votes
1 answer
166 views

Via the command line, attempt to dismiss the screen saver *only* if the screen saver is active

I'm running BigSur 11.7.5. I want to run some sort of command or script from the command line which will dismiss the screen saver, but only if the screen saver is active. If the screen saver is not ...
HippoMan's user avatar
  • 348
0 votes
0 answers
1k views

“Allow full disk access for remote users” checkbox not appearing for remote login

I have been using a spare mac-mini (late 2012 model) running Catalina 10.15.7 as a general use home server, mostly for running plex, and have it plugged in and not connected to a monitor. As a result ...
Ponyboy's user avatar
0 votes
0 answers
193 views

Mac won't accept SSH traffic despite being set to allow remote access to all users

I am trying to ssh -v user_name@host_address from Linux to a Mac and I get this output: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /...
purpleglaciers's user avatar
1 vote
1 answer
1k views

Why did my SSH agent disappear after updating to macOS Ventura?

I recently updated my Macbook to macOS Ventura 13.1, and ever since that I've had trouble using SSH. This has always kind of "just worked", I've always been able to just ssh to a host and a ...
Hubro's user avatar
  • 250
1 vote
0 answers
683 views

SSH forwarding not working in macOS Monterey

I am trying to get port forwarding working on my Mac with macOS Monterey. I have a script that works on multiple other machines, including older Mac and Windows machines using Ubuntu Linux subsystems. ...
hawkjo's user avatar
  • 61
1 vote
0 answers
430 views

How can I automatically mount a few remote folders at startup with SSHFS?

I have two folders on a remote server, and I mount them locally on my Mac using MacFUSE and SSHFS, as described here or here: sshfs -o allow_other,defer_permissions [email protected]:/path/to/...
DeltaIV's user avatar
  • 398
1 vote
1 answer
409 views

SSH key not being added to ssh-agent automatically

OS version is Ventura 13.2 I generated an SSH key to authenticate git operations with GitHub according to their guide. Followed the steps: ssh-keygen -t ed25519 -C "my identifier" (Without ...
WarningSign's user avatar
3 votes
1 answer
955 views

iOS apps that lets you SSH into a server using Yubikey 5 NFC with Public Key authentication and gpg-agent

I have a Yubikey 5 NFC, and iPhone 11. I am also running an Ubuntu Server. To log into my server on from mac using ssh. I use ssh with gpg-agent and public key authentication, and have the private (...
DanRan's user avatar
  • 720
1 vote
1 answer
343 views

Using multiple github accounts with ssh keys, works only first try on each account

Following different pages I ended up with a ~/.ssh/config looking like this: Host github-personal HostName github.com IdentityFile ~/.ssh/one_key Host github.com HostName github.com ...
Mooze's user avatar
  • 21
0 votes
1 answer
134 views

looking for an SSH client that allows xwindows

I've recently started using macOS. I am looking for an SSH client that allows xwindow tunneling through SSH. As suggested, I've installed Xquartz via brew but whenever I try opening an xwindow based ...
Skegg's user avatar
  • 181

1
2 3 4 5
19