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
0
votes
0answers
9 views

Preventing ssh command from opening xquartz on every login

Whenever I use ssh, after I type the password, xQuartz pop ups in the dock. It is a similar question to preventing ssh command from opening xquartz on every session, but in my case, I want X ...
1
vote
0answers
21 views

ssh -X from MAC OS to Ubuntu, error with RANDR

I have a question regarding the following situation: I'm doing ssh -X from a Macbook with Catalina OS to an Ubuntu 16.04. I installed XQuartz-2.7.11 in the macbook in order to be able to handle the ...
0
votes
1answer
26 views

How can I use launchctl getenv over ssh?

In a terminal session I can run launchctl getenv SSH_AUTH_SOCK and it prints the value of that variable. However if I ssh into the same user from another computer, then run the same command, there is ...
2
votes
1answer
48 views

SSH connection using public/private key authentication fails only for port 22

I have been struggling for hours to make sense of a specific failure from connecting to an SSH server from one recent macOS system. ssh user@machine -p 22 I have added all keys to ~/.ssh/...
2
votes
1answer
58 views

ssh VerifyHostKeyDNS not working

I'm stuck figuring out why ssh is unable to verify my SSHFP entries. VerifyHostKeyDNS=yes is set in my ~/.ssh/config The Zone is properly signed as verified with https://dnssec-analyzer....
-1
votes
1answer
26 views

How do I allow incoming connections when Tunnelblick OpenVPN is connected?

When I use OpenVPN as a client via Tunnelblick app on a macOS VPS it drops the connection with me and I'm no longe able to connect via NoMachine, VNC or SSH. How can I avoid such problem?
1
vote
0answers
31 views

SSH apps for iPad that run 9.3.5 and earlier

I own an iPad2 (I guess it's an iPad2, it's an old iPad, one of those that you can't update past 9.3.5). Not only that I can't update past iOS 9.3.5, most of the apps I was looking at require at least ...
1
vote
1answer
151 views

Interactive Ssh blocked with Catalina

Since migrating to Catalina, I am not able to run an interactive shell through SSH to one of my linux servers. Using a Windows machine (I do not have a pre-Catalina machine available), I have no ...
1
vote
0answers
20 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? ...
2
votes
1answer
86 views

Can Safari (iPad iOS 12.4.2) be configured to utilize SSH-Tunnel / Port Forwarding?

Goal: from WAN, SSH-tunnel to home router (outfitted with SSH) and access remote LAN devices with iPad's web browser. As I understand it, a SSH-tunnel (connection) must be established first, which I ...
0
votes
0answers
21 views

Detaching Process from “Run Script Over SSH” in Shortcuts

I'm trying to use the "Run Script Over SSH" in Shortcuts (found under Scripting > Shell. I want to execute a long running command from a sharesheet. So that the sharesheet doesn't remain open, and ...
0
votes
0answers
7 views

Can command line SSH work with Power Nap?

I googled "power nap ssh" and found this question. Apparantly Putty works with Power Nap. Can regular OpenSSH used from the command line also stay online when the computer is put to sleep?
0
votes
0answers
13 views

ssh -p to a VirtualBox Ubuntu instance stops working, error: “Could not resolve hostname ?\200\223p: nodename nor servname provided, or not known”

Is there any reason why ssh -p would stop working and error with a message like below? ssh –p 2222 osboxes@localhost ssh: Could not resolve hostname ?\200\223p: nodename nor servername provided, or ...
2
votes
1answer
93 views

How to create sha-512 password hashes on Mac for CentOS?

I need to generate password hashes on Mac for CentOS. I can generate sha with echo foopass | shasum -a 512, but as I've understood password hashes are more just one sha application. I've found some ...
1
vote
1answer
50 views

Is the MacPort version of XQuartz severly outdated or what?

At https://www.xquartz.org/ the current version of XQuartz is listed as 2.7.11 but in MacPort it looks like this $ port search xquartz xorg-server @1.20.5 (x11, devel) The X.org / Xquartz X ...
2
votes
2answers
135 views

grc inside terminal (with different colors into terminal as a function of files size) not working on 10.14.6 Mojave and working on High Sierra 10.13.6

I can get working the tool grc which allows to have colors for permissions and different colors as a function of the size of files listed for example with ls -l command. On my previous MacBook with ...
1
vote
1answer
27 views

Why is SSH key different for user@ipaddress vs user@devicename.local (same device)

if i ssh into a device (linux) on my local network using user@ipaddress vs user@devicename.local it seems as though my computer (OSX) is treated as two different devices. I have noticed some ...
0
votes
0answers
16 views

Automatically open an SSH connection when something tries to connect to a port?

I need to tunnel my SMTP-traffic via an SSH connection because the SMTP only accept clients from certain IP-addresses. Currently I have to setup this tunnel manually ssh -L 5870:smtp:587 -l name ...
1
vote
1answer
56 views

Why is my .ssh/config file not readable?

I am trying to edit my ssh/config file, but when I type emacs ~/.ssh/config into Terminal, it says that the file is not readable and will not save my edits. When I try to overwrite, it says permission ...
0
votes
2answers
29 views

How to distinguish a terminal window currently connected via SSH?

I'm coming from Windows, where I used to use Putty whenever I needed to connect to a server via SSH. On MacOS this is much easier, as I can ssh into the server directly from the terminal. This is ...
2
votes
1answer
77 views

No prompt for ssh passphrase

I have two ssh keys, one for git (gitlab) and one for a server. My ~/.ssh/config is : Host private HostName x.x.x.x User username IdentityFile ~/.ssh/server Host git.example.com IdentityFile ...
2
votes
2answers
50 views

Opening pdf over ssh in Mac terminal

As the title says, I do > ssh user@host.de Password: > cd documents/ > okular example.pdf QXcbConnection: Could not connect to display Aborted (core dumped) I connect to an ...
2
votes
1answer
46 views

Can't SSH for 5 minutes+ after boot up

I'm running Mojave 10.14.6 on a new MacBrook Pro and whenever my mac is completely off and then comes back on, it seems to take at least 5 minutes to be able to connect or access anything over ssh. ...
0
votes
0answers
12 views

File permission issue when trying to script command to run via ssh, but can manually ssh and then run command no issues

I am trying to script access to a remote environment variable $CUSTOM_ENV_VARIABLE on my macbook. The following works for me when I do it manually: linux-box:~$ ssh my-macbook my-macbook:~$ env ... ...
2
votes
0answers
122 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 ...
1
vote
1answer
789 views

What version of OpenSSH is included with macOS Catalina (10.15) beta?

I'm interested to know which version of OpenSSH ships today on Catalina beta Can someone running the beta version of Catalina run the following command in Terminal for me and provide the output? /...
5
votes
1answer
62 views

SSH daemon listens on both IPv4 and IPv6, but I can connect only over v6

Ok, maybe I'm weird or something, but I can't figure this one out. MacOS Mojave, native IPv6 from my ISP. As you can see, sshd is listening on both v4 and v6: alluminium:~ root# netstat -an | grep ...
3
votes
1answer
95 views

Passing alt/opt key sequence over ssh to remote host with iTerm

Just learning the ropes of my new MacBook Pro. I have a linux workstation at the office that I use to host a number of tmux sessions, which represent whatever Im working on at a given time. If out ...
1
vote
1answer
21 views

VPN with mac mini reachable locally but not from the Internet

I have a Mac mini that I'm trying to make ssh-reachable when I'm in a coffeeshop outside on the Internet (How do I convert my mac mini into a remote server?) so I can run more computationally ...
0
votes
1answer
157 views

How do I remove an ssh private key from ssh-agent/keychain

I followed some aws guide to add my private key to ssh-agent, using: ssh-add -K "MyPrivateKey.pem" However, I can't seem to remove the key using : ssh-add -d "MyPrivateKey.pem" which gives me the ...
1
vote
1answer
35 views

Best practices for second hard drive on macOS

I’ve a 1TB Mac Mini (Seagate hybrid HD + SSD) but I’m running out of space so I bought a second drive (Samsung 860 EVO 1TB). Since it is as large as the first hard drive I don’t think using fusion ...
2
votes
1answer
164 views

Use OpenSSH agent instead of the OSX agent

I've installed OpenSSH using homebrew (brew install openssh) and this installation provides it's own ssh-agent. Still, when I login, and see the autostarted ssh-agent, I see that the agent that is ...
1
vote
1answer
27 views

My ssh key won't work on my personal wifi network. How do I fix it

I have a macbook pro that I'm using for work. So I set up an ssh key for use with a bitbucket team account. My work email is a gmail account. But my bitbucket account is a team account with same ...
2
votes
1answer
334 views

Brew - sshpass security

i come from linux and i know that for automatize shh logins we can use sshpass. Looking for the sshpass command on MacOS i get this message: machine0:~ roberto$ brew search sshpass We won't add ...
1
vote
1answer
62 views

How do I convert my mac mini into a remote server?

I have a Mac Mini that I'd like to convert to a remote server (i.e. so when I am in a random coffeeshop I can connect to it to run computationally intensive tasks as it sits on my desk at home). Are ...
3
votes
1answer
34 views

Connect to a VPN server through a Raspberry (connected VPN client)

I'm trying to connect from my MacBook to the VPN server, which is accessible from the Raspberry as it's a connected VPN client. MacBook (172.25.0.139) ---> Raspberry (172.25.0.14) ---> [...
0
votes
0answers
19 views

Unable to ARD to remote machine

I've set up a computer on another subnet. This machine is on ip 10.1.1.39. I am able to ssh to it and the prompt returns the correct name for the machine. When I try to ARD, it fails to connect. I ...
0
votes
1answer
95 views

error with automator applescript “do shell script” call (file not found) yet command line with same command works

I have a simple automator app that runs a simple script. It uses ssh to open a file on the local machine, MachineA, with an app on the remote machine, MachineB, and logs the ssh call. on run {input, ...
0
votes
0answers
79 views

Does there exist a means to use Ranger in iTerm2 and Preview Images with X11 forwarding enabled on an SSH session?

So I am using the ranger terminal application, which is a vi style file browser. I've followed this tutorial to achieve image preview compatibility with the iTerm application. This works very well for ...
1
vote
0answers
29 views

Create DMG on linux via SSH

I would like to integrate my Time Machine backups with a manual script that will create a compressed and encrypted DMG image from some folders. Reading about this issue, I can create a DMG, for ...
1
vote
0answers
25 views

Removing garbish history from Terminal Remote Connection

When you press CMD+Shift+K on terminal, a Remote Connection window will appear, which allows you to save and manage your connections. When I was trying to add the correct ssh command, I had several ...
0
votes
0answers
51 views

`ssh-add -l` does not show the location of the SSH key(s)

When I run ssh-add -l, it does not show the location of the SSH key(s). It outputs the following: 4096 SHA256:bBMtB9wL6RXRWhvx5M+LDox6A2gq61CDtZN9F4bi3Gw masoud@x.y (RSA) 2048 SHA256:QbCO5y5SX+CSHd6++...
0
votes
0answers
15 views

macOS ssh client with “local editing” feature to prevent typing delay? [duplicate]

I failed to install putty on my 10.14.4 macOS. It there a replacement that has "local editing" feature to prevent typing delay?
2
votes
1answer
58 views

Is there a macOS ssh client that allows me to type fluid commands?

Terminal and iTerm uses whatever method they are using to ssh that basically slows down if the network connection to the server is slow. All the commands I type would show up on the screen seconds ...
0
votes
0answers
46 views

MacOS/X: ssh -6 to mDNS hostname on LAN only works after ping6 to same hostname

I'm observing some "interesting" behavior on my Mac -- I have a Linux box running on my LAN with IPv6 configured, and I when I try to "ssh -6" from my Mac to that box, the mDNS hostname resolution ...
1
vote
1answer
24 views

ssh to non-existent .local name never times out

If I try to connect to a non-existent .local hostname using most utilities, including ping and telnet, it times out after 5 seconds: % time telnet host.example.local host.example.local: nodename nor ...
1
vote
3answers
2k views

How to fix 'ssh_exchange_identification: read: Connection reset by peer' on mac OS Mojave?

I am trying to connect to my Raspberry Pi over ssh using my MacBook. The command ssh -v pi@ipadress gives the following output: OpenSSH_7.9p1, LibreSSL 2.7.3 debug1: Reading configuration data /etc/...
2
votes
2answers
867 views

How to ssh with public-key on an iPad?

I want to use an iPad to connect to a linux server through ssh. However, the server only accepts encrypted access using public-key authentication. Is there any way to do that? So one question is ...
0
votes
1answer
68 views

No SSH connection possible over Wi-Fi

I have a MacBook Pro from 2014 running macOS Mojave. I cannot SSH into a remote server, use git over SSH or use the Mac App Store while connected to my Wi-Fi at home. Some of my mail accounts seem to ...
0
votes
1answer
704 views

Open a terminal on a remote computer?

I want to open a terminal and run a command on a remote computer through SSH. I don’t need to see what is happening in that terminal, but I cannot make it work. I know to open a browser, for example ...