Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ssh]

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

1
vote
0answers
13 views

Running fbsimctl stream command via SSH on the Mac causes exception; works fine when directly connected [on hold]

I am trying to stream iOS simulator/iPhone screen to http via fbsimctl, The command fbsimctl <udid> stream --h264 --fps 12 --listenport 9876 - works fine, if run on Terminal from Mac terminal. ...
0
votes
1answer
19 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
19 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
24 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
17 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
19 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
44 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
25 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
15 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
1answer
329 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
70 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
54 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
46 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 ...
2
votes
1answer
59 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: # ...
1
vote
1answer
22 views

Keyboard lag on iPhone SE

When I use an app called Termius on iOS to SSH into my different machines, I am starting to get serious keyboard lag lately. I’ve already tried resetting the dictionary and I’ve restarted my phone. ...
2
votes
1answer
21 views

Set sshd to serve different shell based on `host`

I want my local sshd to serve different shell, based on the host. Example: ssh user@hostname1 -> get's bash ssh user@hostname2 -> get's fish Is it possible, and if so, how can it be done?
4
votes
2answers
495 views

Did Mojave break SSH login?

I hope someone can help me troubleshoot this ssh login issue. In my home LAN, I develop websites and have set up my router to forward external SSH calls to my main laptop from this external port. So ...
1
vote
2answers
166 views

ssh fails with ssh_dispatch_run_fatal invalid format

During the last years I've had various problems with MacOS SSH, but those were quickly resolved searching the net. This is now something different. This is Mojave -system with lates updates (10....
0
votes
2answers
50 views

Best way to run Shell commands on VirtualBox Guest

What's the best way to run shell commands on a MacOS guest VM? Can't seem to run it through VirtualBox's guestcontrol, only lets you launch apps, not run commands directly. Saw some people suggest SSH,...
2
votes
1answer
165 views

Add arcfour Cipher to Mojave 10.14

Im trying to use the arcfour cipher with SSH. Yes, I am aware of the risks, but I have my own reasons for wanting to use it. When I list available ciphers, it's not there. Is it possible to add it ...
1
vote
1answer
123 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 ...
1
vote
0answers
78 views

How to block TCP connections from unidentified IP addresses mac

I started up a private minecraft server for my friend and I, and that required me to use generic TCP forwarding in order to open it up to accept his IP address. I used this program called serveo.io ...
1
vote
1answer
127 views

A headless Mac Mini server gets stuck (non-SSH-able) after rebooting (macOS Mojave)

When I reboot a headless Mac Mini server running macOS Mojave with sudo reboot, it becomes non-ssh-able. The same happens if a "fake monitor" HDMI display emulator is plugged in. This happens ...
0
votes
1answer
97 views

Cydia - Add sources through command line

I am able to SSH into my iPhone and update the file /var/mobile/Library/Caches/com.saurik.Cydia/sources.list with the number of repos, but the file gets reverted as soon as I try to update the repos ...
2
votes
3answers
96 views

How do I open up my Mac to remote sharing anywhere?

I've been looking around and I can only find a way to access my iMac and it's files on a local network. But if I'm away or at school, this kinda puts a hold on my work and is mighty inconvenient. If ...
2
votes
1answer
170 views

Copy SSH Public Key to clipboard WITHOUT newline appended

Every Google search for copying a Mac's SSH Public Key to clipboard yields the following command, which results in a newline appended: pbcopy < ~/.ssh/id_rsa.pub This is undesirable as I need to ...
2
votes
1answer
110 views

Auval and Auvaltool not working through SSH

I was successfully validating audio unit plugins with OSX 10.11 over SSH. On my new machine which runs OSX 10.14 (Mojave) everything works fine until I try to validate a plugin from an SSH connection. ...
0
votes
0answers
89 views

Safari Proxy Setting (IOS)

Where is the native safari options to configure a SSH proxy-tunnel to access a remote LAN device? If there are none, what is the key-searchword to find such functionality. This is not a request for ...
0
votes
1answer
74 views

Remote SSH connection

I want to connect my iMac remotely via ssh. Even though I can connect it locally, I can't do it remotely. When I try to connect remotely it refuses the connection. port 22: Connection refused I ...
1
vote
1answer
36 views

Terminal - lose useful keyboard shortcuts during SSH connection

I'm encountering an annoying issue. When I'm connecting to a Linux VM through my terminal by ssh, I don't have tab completion, or I can't navigate through my past commands with the directional arrows. ...
1
vote
0answers
38 views

How can I enable graphics on local macOS from remote Linux using SSH?

host: Ubuntu 64-bit local: macOS 10.13 64-bit I'm attempting to run a program on a remote Linux machine through ssh, and I want the GUI to appear on my local macOS laptop. When I execute ssh -v -X ...
0
votes
1answer
57 views

How do I setup ssh so I can ssh back into my local machine

I need to be able to ssh back to my localhost, samwise.local in my case, but ssh on Mojave will only let me do this if I authorise by password and I need passwordless login. I've set ssh keys via ssh-...
0
votes
1answer
30 views

Can I set up Boot Camp in a headless mac pro?

I have this headless Mac Pro in the living room. I access it from my MBP through the network, ssh and sometimes with a remote desktop solution. I use it to run data/computing. Now I need to get ...
1
vote
1answer
48 views

3 locations for SSHd configuration

So I want to harden my SSH daemon when Remote Login is enabled. So far I've found: /private/etc/ssh/sshd_config /System/Library/LaunchDaemons/ssh.plist -> protected by SIP /etc/ssh/sshd_config Why ...
1
vote
0answers
33 views

How do I keep my SSH private key passphrase away from OSX?

I recently created an SSH public/private keypair on my Mac OSX Yosemite system and for this use-case, I wanted to encrypt the private key with a passphrase. However, the first time I attempted to use ...
1
vote
1answer
325 views

Connecting from iOS to macOS using ssh

Because of the OpenSSH iOS tweak and NewTerm (my phone is jailbroken), I'm able to connect from my computer to my phone using ssh: $ ssh mobile@myphonesip mobile@myphonesip's password: myphonesname~ ...
1
vote
1answer
1k views

How to get to .ssh path on macOS?

I have tried the following steps from How to access my .ssh folder for Transmit or Cyberduck?: In the find file window, press Command-Shift-G. It'll ask you what folder to navigate to. Enter "~/....
1
vote
1answer
106 views

Storing SSH passphrase in memory but not saving it to the keychain persistently

Answers to this question explain how to have SSH passphrases added to the keychain when they are entered. Having recently upgraded from a previous version of OSX, I'm used to the passphrases being ...
1
vote
0answers
240 views

Mojave: Generate SSH key with old private key format

After I fresh installed Mojave, when I generate a new SSH key it uses the new OpenSSH protocol 2 format private key. The ID_RSA file starts with "BEGIN OPENSSH PRIVATE KEY", even if I run ssh-keygen -...
2
votes
3answers
605 views

Multiple machine ssh client application for macOS

In Windows there are applications such as mobaexterm that allow the user to control multiple remote ssh clients conveniently. For example, in order to run the same command on multiple machine, or save ...
1
vote
0answers
61 views

SSH authentication with USB token

I’ve been given a SafeNet USB token for authenticating via AD to remote servers. How can I pass my token credentials through Terminal to SSH into remote servers?
5
votes
2answers
1k views

After running `ssh-add -K` to add my SSH key to the Apple Keychain, what is the name and type of entry shown in Keychain Access.app?

Supposedly this console command will add my private SSH key to the Apple Keychain, as discussed in this Answer on the Question, How to use Mac OS X Keychain with SSH keys?: ssh-add -K path-to-my-...
1
vote
1answer
112 views

Allow user to SSH to my Mac, but sandbox the account

I would like to create an SSH account on my Mac to allow some friends to test code on my machine from the command line. However, I want to sandbox them, so that the only folders/files they can see ...
5
votes
2answers
678 views

Restrict ssh access to selected IP on macOS

I want to restrict ssh access on macOS 10.12 to selected IPs on my local network. I tried writing the following files: # /etc/hosts.allow sshd: 192.168.1.32 sshd: 192.168.1.33 # /etc/hosts.deny sshd:...
1
vote
1answer
540 views

How can I edit the /etc/ssh/ssh_config file?

I tried editing the /etc/ssh/ssh_config file on my Mac to change the forwardX11 from no to yes, and this to enable X11 features. I try to change permission in the file ssh_config and in the folder ...
0
votes
1answer
632 views

ssh from my mac hangs after authenticating anywhere, regardless of app. It's definitely the mac. Ideas?

I have a MacBook Pro running Mojave 10.14.1. When I try to ssh anywhere, after entering my password, the ssh session hangs immediately after authentication. Regardless of ssh app! And I'm baffled. ...
1
vote
1answer
284 views

How can I reduce timeout for ssh when network is down?

I'm using macbook and annoyed by ssh timeout everyday. When my internet connection is down(by moving to conference room) or most of the times that macbook goes to sleep mode, ssh connections show ...
2
votes
1answer
30 views

Transferring WinSCP configuration to macOS

I have been using Windows for a couple of decades, and just got a MacBook Pro. Under Windows, I was using WinSCP, with PuTTY. I just installed CyberDuck, and I know I should be able to use the built-...
1
vote
1answer
429 views

Newly-created SSH keys landed in my home folder rather than `.ssh` folder after creating with `ssh-keygen`

I used the ssh-keygen utility bundled with High Sierra to create keys, as directed by this page title How to Create SSH Keys with OpenSSH on Linux or macOS at DigitalOcean.com. Oddly, the prompt to ...