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

0
votes
1answer
29 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
37 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
18 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
101 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
53 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
30 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
56 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
votes
0answers
27 views

How to connect ssh on MacOS

I wamt to connect to server via ssh on MacOS but when I write "ssh id@ip", it can not run I try https://blog.csdn.net/shuyumac/article/details/79283150 but it still con't run Tell me what Thanks!! ...
1
vote
1answer
60 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
39 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
48 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
37 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
66 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
89 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
86 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
24 views

Keychain not accessible when user logs out?

I have a cronjob that runs a bash script every couple of hours. This bash script connects via ssh to a server using ssh keys. The private key I use for connecting to the server is protected by a ...
0
votes
0answers
48 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
55 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
26 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
30 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
0answers
13 views

Fail2ban ssh rules do not apply when using ssh user@devicename.local?

I have fail2ban set up and working correctly for ssh on my Linux server, it acts the way I want it to if I exceed maxretry when I am logging in as ssh user@ipaddress however if I use ssh user@...
0
votes
1answer
44 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
26 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
28 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
30 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
157 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
619 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
59 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
171 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
261 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
40 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
596 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
82 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
376 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
211 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
482 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
191 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
29 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
230 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 ...
1
vote
1answer
58 views

Disable ECDSA SSH Host keys

I would like to disable ECDSA SSH host keys. I deleted the existing keys: $ sudo rm -f /etc/ssh/ssh_host_ecdsa_key* I uncomment ECDSA in /etc/ssh/sshd_config $ grep -i ecdsa /etc/ssh/sshd_config #...
2
votes
0answers
268 views

Killed: 9 error while running ssh on Mojave

I am trying to connect via ssh to the remote GitHub server using Mac OS Mojave. I generated the Key pair and when I execute the following command in bash: ssh -T git@github.com I get this error: ...
7
votes
4answers
3k views

Adding SSH private key gives error that 0644 permissions are too open

I have a generated a ssh private key .key. I want to add it into my ssh in Mac to connect to a remote server, I have only known_hosts file in ~/.ssh directory. When I try to add it using this command:...
0
votes
2answers
25 views

How can I keep a folder on a remote server in sync with a local folder in iOS accessible via Files?

I prefer not sideloading apps onto my devices, so solutions leveraging existing products are preferred. I tried using Nextcloud, but I don’t know how to accomplish my goal of a synced folder with it, ...
1
vote
1answer
147 views

Make sourced .bash_profile works immediately in current window [closed]

I use a macOS to connect to an Ubuntu server, after defining new .bash_profile (like upgrading node.js or making new alias), I will have to exit the ssh and login again after sourcing the ....
3
votes
0answers
386 views

Keep alive SSH connection with server in MacOs Mojave

In El Captain, to maintain active a SSH connection you should edit ~/.ssh/config file to add your additional rules. nano ~/.ssh/config To maintain active for 1 hour you should add: Host * ...
1
vote
1answer
42 views

Don't get password prompt when ssh-ing from fedora

I can ssh successfully with password from one mac running Yosemite to another, but when I try to use password authentication for ssh from fedora to either Yosemite system, I never get a password ...
1
vote
0answers
32 views

How to import self-signed certificate over SSH? (bounty)

I'm trying to remotely (SSH) import a custom certificate into Firefox and/or Chrome. It looks a similar question has been asked before, but didn't get an answer. I put a 150 point bounty on it in ...
1
vote
1answer
47 views

.putty/randomseed in home folder

I have recently found out that there is a hidden folder in my Home Directory named putty with a file named "randomseed" inside. I know PuTTY on Unix stores its data there, and I have read around that ...
3
votes
3answers
140 views

MacOS SSH connect using key

I'm trying to connect to my host using SSH key. I've generated a key pair and added public key to authorized keys to the server. However I'm unable to connect to server using my private key. Every ...