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
1k views

Allow ssh-keygen-wrapper to access "System Events" for all users in the same computer

When I run my AppleScript in a remote mode, I get this message in an user where the script runs: “sshd-keygen-wrapper“ wants access to control “System Events“. Allowing control will provide access to ...
0 votes
1 answer
56 views

sshfs under autofs from Debian 10.9 to macOS 11.0 fails, but sshfs without autofs from and to same works fine

I am attempting to set up autofs to spawn an sshfs. The autofs is on a Debian 10.9 system. The remote sshd I want it to connect to is on a mac running Big Sur. When I try to ls the intended (auto)...
0 votes
1 answer
17 views

How to stop DNS spoofing warnings when I change boot media

I am using my Mac as the base workstation to program for a Raspberry Pi project. I use SSH as the primary tool to communicate with and work on the Pi. In the process of experimenting and trying out ...
5 votes
2 answers
143 views

How to restore an individual file from Time Machine using CLI (MacOS)

How can I restore a single file from an old Time Machine backup using only the Command Line Interface? I took a snapshot of my MacOS system using Time Machine some time ago, and I'd like to restore ...
5 votes
0 answers
297 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? ...
7 votes
1 answer
724 views

How do I use my GPG agent for SSH everywhere?

On my system, I'm trying to set up SSH authentication through my GPG agent (installed via brew). So far, I have this working in my terminal thanks to adding the following lines to ~/.profile: # ...
2 votes
1 answer
87 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 ...
1 vote
1 answer
172 views

Can't enable SSH on Catalina - System Preferences keeps saying "Remote Login starting..."

I just did a complete reinstall of my late 2012 Mac Mini, with the latest OS it supports: Catalina (10.15.7). I'm trying to enable remote login via SSH, but when I check the box in System Preferences →...
1 vote
0 answers
26 views

SSH request timeout every time AFTER Mac OS update

I previously had no trouble logging in until my Mac recently updated. Since then, the terminal always times out and can't connect. ssh -Y -p 65492 username@141.xxx.xxx.xxx I get the following: "...
0 votes
0 answers
15 views

I can’t connect to synology NAS in Finder via SSH tunnel

To be more precise, I'm stuck at the step when I try to connect the Mac to the NAS (Synology) It doesn’t load a share despite being able to connect in SSH via Terminal. My goal is to be able to ...
1 vote
0 answers
24 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
1 answer
114 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/...
3 votes
1 answer
168 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 ...
0 votes
1 answer
47 views

How to start a service for ssh socks proxy?

I want to start the following command as a service on Mac OS X. Could anybody show me what is the correct way to do it on Catalina? Thanks. ssh -D 1337 -q -C -N -f user@ma.ttias.be https://ma.ttias....
2 votes
2 answers
2k views

Cannot SSH into Cisco switch or pfSense router from Mac Mini (macOS High Sierra 10.13.6)

Errors message in Terminal are (switch 1st, router 2nd): MacMini:/ MacAdmin$ ssh NetAdmin@192.168.3.2 #Switch Unable to negotiate with 192.168.3.2 port 22: no matching key exchange method found. ...
1 vote
1 answer
37 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 ...
0 votes
0 answers
13 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 ...
0 votes
0 answers
43 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 ...
2 votes
1 answer
51 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:...
0 votes
0 answers
47 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 ...
-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 ...
0 votes
1 answer
141 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 ...
0 votes
0 answers
71 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 ...
0 votes
1 answer
31 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 ...
1 vote
1 answer
849 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://...
0 votes
2 answers
653 views

What can I use to enable-disable a ssh tunnel with port forwarding?

I already found a product that does this, named Meerkat, but I'm looking for a free solution. I need to do several port remapping with ease.
3 votes
2 answers
2k views

macOS Sierra SSH Active Directory login not working

I have a really strange problem with my macOS Sierra Server. It is connected to the Active Directory server and limited access to the login window only for few people. This is working without any ...
7 votes
3 answers
6k views

ssh-askpass on Mac OS 10.9/Mavericks broken?

On Mac OS 10.7 and 10.8 (separate computers) I've been using a ssh-askpass script to let me verify the use of SSH keys: https://github.com/TimZehta/mac-ssh-confirm However, this does not seem to work ...
1 vote
1 answer
2k views

Putty - equivalent Mac SSH client and commands

I'm trying to find out what the equivalent Mac SSH client is and set of commands are that would achieve the below. In Windows we use the Putty CLI utility 'Plink' to set up a SSH connection to a SSH ...
2 votes
1 answer
201 views

Safari SSH Tunneling Troubleshooting Diagnostics

What diagnostics / troubleshooting can be performed to meet the goal? Goal: tunnel through a remote router, with port 22 enabled for SSH access via SSH. Asus RT68U Router outfitted with Merlin ...
1 vote
2 answers
58 views

ssh into my local ubuntu virtual machine

I would like to ssh into an Ubuntu virtual machine running on Virtual Box on my machine; use Terminal to ssh into a virtual machine running in the same computer To avoid "why are you doing that? do ...
50 votes
8 answers
27k views

Tab completion for hosts defined in ~/.ssh/config doesn't work anymore on Yosemite

I'm trying to create my ~/.ssh/config file for simplify my work life on the server connection. In Mavericks all worked properly and with the tab I was be able to autocomplete the hostname with file ...
0 votes
1 answer
720 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 ...
1 vote
2 answers
3k views

suspect message "sshd-keygen-wrapper would like to receive keystrokes from any application"

I am receiving this message about "sshd-keygen-wrapper would like to receive keystrokes from any application", here is a screenshot: I find it suspicious... this binary is located at /usr/...
0 votes
1 answer
88 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 ...
0 votes
2 answers
65 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 ...
0 votes
0 answers
24 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 ...
1 vote
0 answers
189 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
1 answer
621 views

MacOS Big Sur does not accept SSH key

I am trying to perform a password-less access from a Linux system to a MacOS system using SSH private / public keys I am generating the keys on the Linux system using ssh-keygen -t rsa -b 4096 and ...
0 votes
0 answers
32 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 ...
5 votes
2 answers
3k views

Colors are different when SSHing onto a Linux machine from iTerm2. How can I standardize them?

Currently, when I SSH onto a Linux machine, the ls output colors and syntax coloring in VIM are different from the colors on my local machine. The colors shown are not defined in my Profile...Colors......
4 votes
2 answers
7k views

SSH not working after macOS 10.15.6 update

I am experiencing a timeout connection error when using ssh from my MacBook to connect to an external server. The problem started immediately after having updated to macOS 10.15.6. I could connect ...
12 votes
3 answers
11k views

Unlocking and locking mac screen via ssh

Is there a way to unlock and lock screen from command line, via ssh? I know /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend command, but it doesn't seem to ...
0 votes
2 answers
169 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 ...
751 votes
6 answers
670k views

How can I permanently add my SSH private key to Keychain so it is automatically available to ssh?

It seems that ssh-add -K ~/.ssh/id_rsa will load your key but will ask for the password each time you reboot. I am looking for a solution that would not require me to re-enter the key password ...
5 votes
3 answers
3k views

Changing the title of an ssh connection without modifying remote machines

Is it possible to set the title of an ssh connection by just changing something on my local machine? I mean I want ubuntu@ip-10-50-10-152 in the following picture to be changed to a name I like. ...
1 vote
0 answers
522 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 ...
0 votes
1 answer
109 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 ...
4 votes
2 answers
4k views

sshd regular exit code 255

I'm a novice at network things. I enabled remote-login on my home mac (OS 10.12.5) so I could git between home and office. To make it work, I had to tell the wifi to fix my Mac's IP and to redirect ...
1 vote
1 answer
548 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-...

1
2 3 4 5
17