Stack Exchange Network

Stack Exchange network consists of 174 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
16 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
2answers
25 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
12 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?
1
vote
0answers
20 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-...
2
votes
1answer
43 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
72 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:...
0
votes
0answers
27 views

SSH into EC2 instance: Operation timed out (macOS 10.14.1)

I'm trying to ssh into my ec2 instance in order to deploy my MEAN-stack app but no matter what I'm receiving a timeout error. I've tried so many solutions that were posted in other StackExchange ...
1
vote
1answer
34 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
87 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
26 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 ...
3
votes
1answer
23 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
24 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 ...
0
votes
1answer
13 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 #...
0
votes
0answers
29 views

iTerm2 colors work locally but not over ssh

I have the settings below on a number of remote servers I ssh to so that I get a visual cue that I'm working remotely when I connect to those export PS1="\[\e[00:91m\]\h>\[\e[00m\] " When I ...
2
votes
0answers
82 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: ...
8
votes
4answers
2k 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
15 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
84 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
243 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
31 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 ...
0
votes
0answers
23 views

Connect iOS Git Interface to Mac Using SSH

I recently installed an iOS app, called Working Copy, to manage my GitHub repositories offline or on my iPad (With connection). However, this only allows me to edit my projects, not run them. I ...
0
votes
0answers
99 views

How to force ssh port on MacOS

I'm asking this here as I don't think that it's a Linux issue. When I travel anywhere, I can hit my Mac at home via ssh on port 1234 (for example). That works flawlessly. When I want to ssh from ...
1
vote
0answers
27 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 ...
2
votes
1answer
25 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 ...
0
votes
0answers
53 views

Unable to write to the folder via smb connection, although writing privileges granted QNAP

I have a QNAP server. I can only SSH there as admin. I have a directory tree: parent/child/. For the parent folder I have the following ls -l permissions: admin@qnap: drwxr-xr-x 6 admin lab ...
2
votes
3answers
65 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 ...
0
votes
0answers
78 views

Looking for an ios terminal/ssh app that supports jump hosts and agent forwarding

I stumbled upon Termius. They support agent forwarding. But support for jump hosts (or "host chaining" as they call it) only exists in the android version of the app. Is there an alternative to ...
6
votes
1answer
824 views

Cannot change ssh port on High Sierra

As subject: I cannot edit the file ssh.plist which is located in /System/Library/LaunchDaemons. I want to change the sshd port. I tried to use 'information' in the finder and unlock it. This didn'...
1
vote
1answer
372 views

Endpoint has been activated through legacy launch on Mac Mini

Asking this here as I don't think it's a Linux problem. My Mac Mini sits on a desktop and is the 'central authority' for all of my backups. I have nine Linux virtual machines on a server on which ...
3
votes
1answer
446 views

How to stop ssh-agent from being started on login/boot

I noticed ssh-agent is started automatically upon login. I'd rather it not do this, as I'd prefer oh-my-zsh to start the ssh-agent instead (since it automatically adds my id_rsa which is a nice ...
0
votes
0answers
15 views

alternatives to keychain for storing keys on shared/managed device

I need to work on a shared/managed apple device (same user), but need to frequently use ssh, git or gnupg. I would like to prevent my keys to be stored on the device keychain besides probably being ...
0
votes
0answers
81 views

Termius ssh-client on iPhone - and the Esc-key

With the Termius app I am able to ssh into my servers straight from the phone, no need to carry anything else (like laptops). The app can use the virtual keyboard, but, for prolonged typing, one can ...
0
votes
0answers
103 views

Using `defaults` through ssh: “Domain com.apple.dt.Xcode does not exist”

I'm trying to automate a build process, and as part of making things robust, I need to set some values with the defaults application. When I'm logged in locally using a terminal on the graphical ...
0
votes
0answers
32 views

Can you disable su for certain users logged in via ssh?

Basically, I'm running a Mac Mini as a server, and I'm trying to close some security holes. My server has 3 users: admin, git, and server. Each user has public key authentication enabled, while only ...
2
votes
0answers
46 views

SSH Port for Outgoing Connections Defaults to 91

Whilst working with SSH on a 2016 MBP running macOS High Sierra, I have noticed that, by default, it tries to connect to hosts using port 91. As an example, if I do a test connection to GitLab, I get ...
1
vote
1answer
63 views

*Persistently* disable password authentication in SSHD

I want to be able to SSH in to my mac. I do not want to be able to use passwords to authenticate. I know how to configure this, what to put in /etc/ssh/sshd_config. But every time I install even a ...
2
votes
0answers
32 views

How to reset SSHD config to vanilla / system default settings on 10.13?

I'm having some really strange issues where workstations can no longer perform password-less (key based) ssh login to one particular workstation on macOS 10.13 now. All other workstations can use ...
1
vote
1answer
31 views

Network client is released unexpectedly and mac goes to sleep

My jenkins builds crash because of broken ssh pipes into my iMac. The ssh connection is dropped unexpectedly and the iMac instantly enters sleep state. I cant figure out why. Here's the pmset -g ...
4
votes
0answers
62 views

iOS Cannot SIGINT or Ctrl+C when SSH'ed into it

I have a jailbroken iPhone that I often SSH into. For some reason, I am unable to Ctrl+C a foreground process or kill -INT a background process when said process is started in an SSH session, but I ...
0
votes
0answers
42 views

Unable to ssh tunnel while connected to VPN

I am trying to SSH tunnel in a guest VM that will connect to a VPN and give access to the host to otherwise blocked urls. All access is correct regarding keys. Host = Connecting via the ssh tunnel (...
1
vote
1answer
35 views

I Can SSH host computer but computer does not appear in Finder's Shared Computers List?

I want to connect via Apple's ScreenSharing.app , to my home mac from a separate network. I verified that my host computer is listening on port 5900 I can SSH via unix command ssh user@router.ip ...
1
vote
0answers
110 views

Using i2cssh with highSierra

I have the latest i2cssh installed dmanna-a01:Downloads dmanna$ brew info i2cssh i2cssh: stable 1.3, HEAD https://github.com/djui/i2cssh /usr/local/Cellar/i2cssh/1.3 (5 files, 6.5KB) * Built from ...
0
votes
1answer
29 views

Running multiple git ssh logins via Terminal

I recently set up an SSH key for by Bitbucket account, which works very nicely. But I also have other git repos like Github, GitLab (non ssh at the moment) and I came to push to one of those other ...
1
vote
0answers
18 views

Mac OS X El Capitan - SSH to Amazon Linux server keeps asking for my .ppk password, but no password is set for .ppk file

I have Amazon Linux server setup. I am unable to access it via my MacBook Pro (El Capitan). It keeps asking me for the password for my .pem file. Please find attached screenshot. Below are the ...
1
vote
1answer
215 views

In terminal, scrolling prints weird characters

I was in an SSH session remotely using vim. For some reason, SSH crashed, and I was returned to my home shell. However, whenever I tried to scroll, instead of the terminal scrolling, it printed sets ...
2
votes
0answers
127 views

Best brute-force prevention for Mac OS X 10.13 High Sierra

I am planning to open up port 22 on my router to my iMac so I can login remotely. Login is required and allowed for only the admin user. The password is very secure--over 30 characters long. I'm not ...
1
vote
0answers
36 views

Unable to login to iMac after successful ARD/VNC connection

I enabled Apple Remote Desktop on an iMac, and I'm trying to use it from a Ubuntu machine with Remmina Remote Desktop Client. I configured the connection to use SSH tunneling. I can connect ...
0
votes
0answers
307 views

Uninstalled openSSL with homebrew, broke everything

In an attempt to get it linking properly, I did something along the lines of brew uninstall --ignore-dependencies --force openssl brew install openssl While this solved the immediate problem of ...
2
votes
1answer
2k views

What causes ssh to return Network is down?

I'm trying, without success, connect to a local network ssh server from macOS by doing: $ ssh user@1111:ab1:123:ab1:011b:12bc:ab12:1a2b and then I get: ssh: connect to host 1111:ab1:123:ab1:011b:...
1
vote
1answer
1k views

SSH timeout every time

SSH stopped working suddenly. I am using macOS 10.13.4. I am getting timeout every time today but all was working yesterday. I have added my public key to GitHub. I get the following output upon ...