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
2 votes
1 answer
53 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 ...
user avatar
1 vote
1 answer
26 views

How to fix unresponsive filesystem without rebooting?

I tried to mount an external storage device in MacOS 12.3.1 using sshfs, but I had to stop this process in the middle of whatever it is doing. Now, when I do a ls -l in the file system it hangs for ...
user avatar
  • 835
0 votes
0 answers
10 views

Close Terminal "New Remote Session" dialog automatically

When I select "New Remote Session" from Terminal's Shell menu, I can construct a command to connect to a SSH server. This works great! But, even after the session starts (I hit Enter or push ...
user avatar
0 votes
0 answers
29 views

Access the content of the iPad/iPhone via SSH from MacBook Pro

While I saw many tutorials about how to access your MacBook Pro from iPad/iPhone via SSH, I wonder if it is possible to do the opposite, namely to access the content of the iPad/iPhone via SSH from ...
user avatar
  • 424
0 votes
0 answers
26 views

MacOS native VNC client asks for (non-existing?) password

I've got a Linux server with VNC server listening on localhost only, without password. I'm using an SSH tunnel to connect to it. When using a third-party VNC client, I connect without any problem, and ...
user avatar
  • 123
2 votes
1 answer
35 views

Return control to bash script when using /usr/bin/open to close SSH tunnel

I want to write a bash script that: establishes an SSH tunnel launches a local VNC client (vncviewer, the RealVNC viewer in my case) closes the SSH tunnel once the vncviewer exits Best effort so far:...
user avatar
  • 123
0 votes
1 answer
53 views

How can I restore ssh on my mac?

I've broken ssh passwordless logins on MacA and MacB on my LAN. (Catalina and Monterey.) I wanted to write a simple, low-paranoia, no-understanding-required recipe for setting up passwordless ssh for ...
user avatar
  • 1,060
0 votes
0 answers
24 views

Permanent SSH tunnel through bastion host

I have the following command that I run locally on my mac to be able to access a DB server trough a bastion host: ssh -L 9234:MYSERVERIP:5432 USER@MYBASTIONIP -i MyBastionPemKey.pem that works just ...
user avatar
  • 101
0 votes
1 answer
161 views

SSH Issue: kex_exchange_identification: read: Connection reset by peer

MacBook Pro 15" 2018, 32G RAM, OS 12.3 Last week I was trying to connect a PHP script to a database on my web host via SSH, and ran the following script: <?php shell_exec("ssh -f -L ...
user avatar
  • 1
0 votes
2 answers
35 views

Unable to access subdirectories off user home directory when logging in via SSH

When logging into a Mac with SSH remote-access enabled, I'm unable to access files in ~/Desktop, ~/Documents, and the like. For example, after logging in, I can do cd Desktop but then running ls ...
user avatar
0 votes
0 answers
16 views

Grant cron permission for Calendar access

A script in one of my cron jobs needs to access my Calendar, but in order to grant this permission I would need to add cron in the following list: As you can see from the window, I experimented a ...
user avatar
1 vote
0 answers
86 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 ...
user avatar
-1 votes
1 answer
39 views

Little script to choose where to SSH

Maybe I am a little dreamy, but I have many server locations, each have different servers/routers ... etc., we have them numbered from 1-83 Can someone help me building a script where I can ...
user avatar
0 votes
0 answers
29 views

~/.ssh/rc is not executed when using ssh

I'm in the situation of having to connect to various systems via ssh to do some quick work and then leave without a trace. Before I do any work, however, I would like to set up some aliases to save ...
user avatar
1 vote
1 answer
462 views

Brew Install PuTTY appears to install but putty command not found [duplicate]

Relatively new to the Mac world but this seems weird. Installing PuTTY with Homebrew and appears to install fine. brew install --build-from-source putty Following output... ==> Downloading https://...
user avatar
0 votes
1 answer
29 views

Accidental SSH to address

Usually when I am doing some development on my mac, I ssh into a virtual machine running on my computer at a 172 address. However, when I was ssh ing into it today, I accidentally mistyped the address ...
user avatar
  • 13
0 votes
2 answers
102 views

SSH Key Fingerprint Changes

I copied an SSH private key from my Linux machine to my M1 Mac. (I've attempted to do this both by uploading the cyphertext to a secrets manager as well as directly transfering the file) but when ...
user avatar
  • 119
0 votes
0 answers
45 views

BigSur SSH can connect a server in the intranet but cannot connect to a internet server

I tried a lot of things to figure out why my SSH gives me the following message (I am using IP and I took out the IP address) OpenSSH_8.1p1, LibreSSL 2.7.3 debug1: Reading configuration data /etc/ssh/...
user avatar
1 vote
0 answers
310 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 ...
user avatar
  • 111
0 votes
1 answer
90 views

Cannot trigger an applescript by ssh to a network mac

I face a vexing problem on my home set-up involving a Server mac advising a Client mac that a task (a back-up task) was successfully implemented. The purpose of this instruction is to trigger (through ...
user avatar
1 vote
1 answer
187 views

How to upgrade ssh on OS X 10.9 Mavericks without OS upgrade?

The ssh version 6.2 of OS X 10.9 (Mavericks) supports dsa and rsa, but not the newer Ed25519 keys. Ed25519 is there since OpenSSH version 6.5. As well as the old ssh-agent returns SHA-1 instead of SHA-...
user avatar
  • 3,496
2 votes
0 answers
107 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. ...
user avatar
  • 105
0 votes
0 answers
80 views

Can't connect via sftp to a server with GUI Clients, but terminal works

Yesterday I was able to connect to a server via sftp with FileZilla without any problems. Today I always get a timeout while trying to connect. I tried using the network wizzard in FileZilla and found ...
user avatar
1 vote
1 answer
264 views

ssh-add -K not adding keys to Keychain

I used ssh-add -K to add keys to Keychain previously in this environment: Intel chipset, macOS Mojave, homebrew OpenSSH_7.9p1, LibreSSL 2.7.3. Now I got a new Mac with the M1 chip and Monterey. I ...
user avatar
  • 143
1 vote
0 answers
11 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 ...
user avatar
  • 7,190
0 votes
0 answers
32 views

Cannot ssh to remote host on Tunnelblick

I'm wondering if there are any Tunnelblick users that can suggest some troubleshooting steps. I use Tunnelblick to connect to my university VPN so I can access ssh servers. It usually works just fine ...
user avatar
0 votes
1 answer
956 views

trying to ssh from 2018 macbook to mac mini; getting error "pledge: filesystem full" and "shell request failed on channel 0"

Been having a fun day. I upgraded both my mac mini (intel, 2018) and my macbook (intel, 2018) to Monterey and also upgraded openssl and whatever else brew was willing to upgrade. I used to be able to ...
user avatar
0 votes
0 answers
18 views

Remote server running from macOS fails to response until `ssh` connection is attempted

I've run a remote server on the random port 44444 on macOS remote machine, the command to start the server was called from a ssh session, and I've used disown the server process so it could run on the ...
user avatar
  • 493
0 votes
0 answers
29 views

Deleted password from keychain access now I can't access my server even with RSA keys

By mistake, I deleted my server keychain passwords and even with the private key on .ssh. I can't access it because it is asking for a password I never wrote down. Is there a way: To revert what I ...
user avatar
  • 1
3 votes
0 answers
548 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 ...
user avatar
  • 248
1 vote
0 answers
164 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 ...
user avatar
0 votes
0 answers
25 views

How do I set up 2FA for ssh remote in Big Sur

I tried: 2-factor authentication for ssh But it fails on Big Sur because /usr/lib cannot be modified.
user avatar
0 votes
0 answers
28 views

How can I automatically kill sshfs on sleep? [duplicate]

I'm regularly using sshfs to mount a remote filesystem on my MacBook. However, sshfs doesn't survive when I close the lid of the laptop and open it again. Instead, all internet connections are blocked ...
user avatar
  • 101
1 vote
2 answers
205 views

ssh: permissions in files /etc

I think, that I have broken the permissions for (at least) the files in /etc, and this is why ssh is no longer working. hosts.allow: sshd : ALL ALL : ALL hosts.deny: sshd: ALL hosts: ## # Host ...
user avatar
0 votes
0 answers
35 views

ssh-agent running in x86 mode, not Apple Silicon, on M1 MacBook Pro

On my M1 MacBook, I'm trying to migrate as many apps and CLI utilities as I can from running the x86-based binaries to running the universal or ARM-based binaries for Apple Silicon. I noticed that ssh-...
user avatar
  • 243
0 votes
0 answers
374 views

ssh'ing for remote access fails with operation timed out

I have a mac that has remote control set up. I'm trying to ssh (from my own mac) using ssh username@IP_address It hangs for a few seconds and then it says operation timed out. Interestingly, I can ...
user avatar
1 vote
1 answer
1k views

Monterey: SSH with hardware key only works once

I'm having an issue using my hardware security key with SSH on Monterey. The Apple-included OpenSSH build seems not to support hardware keys at all, as I get an error message saying Cannot load FIDO ...
user avatar
2 votes
0 answers
57 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/...
user avatar
  • 121
0 votes
0 answers
37 views

Enable listing files over SSH in Monterey

I want to be able to ls files under /Users/<username>/Downloads. I am getting Operation not permitted. I am able to list them locally when in iTerm2 but not over SSH.
user avatar
  • 121
0 votes
0 answers
29 views

What factors prevent an IDE for iPad from being made?

It’s now common to use cloud-based IDEs like VS Code through a service like Gitpod. If the code repository is in the cloud and a service like Gitpod or Digital Ocean provides a remote machine, what ...
user avatar
0 votes
1 answer
78 views

Why do I have to keep reloading the SSH daemon?

This on a 2017 iMac running Big Sur (11.6) with OpenSSH_8.1p1, LibreSSL 2.7.3. I sometimes have a need to log in to this machine remotely. I have forwarded the port appropriately. But, sometimes I get ...
user avatar
  • 105
0 votes
0 answers
59 views

How can I run `launchctl asuser` over a SSH session?

I am SSH'ing into my Mac and I want to get the value of SSH_AUTH_SOCK from launchctl. Normally, I would do that like this: % launchctl getenv SSH_AUTH_SOCK However, when you SSH into your Mac, this ...
user avatar
0 votes
0 answers
694 views

MacOS sshd Key Authentication: kex_exchange_identification: Connection closed by remote host

Problem I have a macOS running OpenBSD sshd. My goal is to disable password authentication and have only key authentication enabled. In /etc/ssh/sshd_config, when I set PasswordAuthentication yes, I ...
user avatar
1 vote
1 answer
125 views

How to MacBook Pro into a remote "server" for running applications?

I often need a stable development environment that has enough CPU and RAM to handle demanding applications (like Confluent), for personal/hobbie use. I want to be able to access the environment from ...
user avatar
1 vote
1 answer
401 views

authorized_keys no longer working under Big Sur

I use ~/.ssh/authorized_keys to allow password-less SSH connection between computers. They worked fine under macOS Catalina, but since I upgraded to macOS Big Sur they no longer work. I can log in to ...
user avatar
1 vote
2 answers
86 views

Quit Terminal after Running SSH "shutdown" Apple (Shell) Script for Remote Machine

I have made a small apple script (calling a shell script using ssh) to remotely shutdown/hibernate my windows machine. I export the script as application so I can easily call it from my raycast search....
user avatar
  • 11
4 votes
1 answer
280 views

How to ssh into Mac on outside network when I can when on the same network

I can ssh just fine into my other Mac when both machines are on the same network using ssh -p 22 travisknoche@192.168.0.11 or ssh travisknoche@192.168.0.11, but when I am on a different network, I ...
user avatar
0 votes
0 answers
35 views

Launch iterm2 from external script (Ruby, bash, etc...) with N SSH sessions on N tabs

I do quite a lot of work on AWS EC2 instances. Every time I need to ssh in one instance I have to copy the IP address from the AWS web console or my app, open iterm2, type the command, etc. and this ...
user avatar
  • 101
0 votes
1 answer
49 views

How retrieve or recreate a delete file from the /etc/ssh directory

In Mac El Capitan in the /etc/ssh directory exists the following content: moduli ssh_host_dsa_key ssh_host_ecdsa_key.pub ssh_host_key ssh_host_rsa_key.pub ssh_config ...
user avatar
0 votes
0 answers
41 views

How do I get an SSH server to start before login on Big Sur?

On High Sierra, I used to be able to SSH into my computer before user login, and now it appears that I cannot on Big Sur. Based on the way that the machine boots, it seems like most of the startup ...
user avatar

1
2 3 4 5
17