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

learn more… | top users | synonyms

1
vote
0answers
92 views

How do SSH sessions work with iTerm?

When I use PuTTY on Windows, if I SSH to some server and launch a script there, closing the PuTTY window stops the script. (so I typically use screen to avoid that) When I use iTerm on Mac OS X, if I ...
1
vote
1answer
979 views

Enable screensharing via SSH and setting password

I am trying to enable VNC (Screen Sharing) on my Mac running OS X Yosemite I have been able to run this command sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist (...
5
votes
3answers
3k views

Blocking incoming hostile traffic dynamically with PF and fail2ban on OS X

The bigger picture is that I am trying to dynamically block/unblock IPs using fail2ban 0.8.14. I have been following an old guide for OS 10.5 with doesn’t include PF. I think I’ve configured ...
0
votes
0answers
290 views

Alt[Option] key not working as meta when ssh a linux server from Mac

I use emacs on my Mac locally, I'm also using iTerm2 as the terminal tool. By setting the 'Preferences--> Profiles-->Keys--> Left option key acts as +Esc'. I can use the left alt key as meta if I ...
4
votes
2answers
956 views

Can't use machine name to login using SSH anymore on Yosemite, how to fix?

from yesterday I have noticed that I can't connect via SSH to my OS X's SSH server anymore using the following command: User-MBP:~ user$ ssh user@user-mbp user is the user on the server, user-mbp is ...
0
votes
1answer
128 views

How do I 'pause' in a .command-script?

I want to create a .command-script on Mac, to execute a series of commands on a remote server using SSH. My script looks something like this: ssh user@domain.com cd /var/www/website/ git pull ...
0
votes
1answer
28 views

How do I set up SSH to open a single application?

iMac 7,1 running OSX 10.10.3 Dell Inspiron 740, running Windows 7 Home Premium My aging mother has a Windows PC and a Mac, which she prefers using. Sometimes my dad is using the Mac, so she's stuck ...
1
vote
1answer
252 views

How to open GUI applications on remote machine logged in via SSH on OS X

I am logging into a remote Fedora 12 machine via SSH. I have enabled X11 forwarding by passing -X parameter to ssh. I also tried trusted forwarding with -Y. Both of them fail with (gedit:3711): Gtk-...
0
votes
0answers
720 views

rsync error: connection unexpectedly closed

I'm trying to backup some folders on an ubuntu server to an external G-Drive, connected through thunderbolt to my iMac, in this manner: $ time nohup sh -c 'rsync -avz myuser@myserver:/home/user/ /...
0
votes
1answer
71 views

Web and outbound ssh stopped working but ping and other network services work

Our home iMac running 10.6 suddenly stopped loading web pages. Also when trying to do a secure shell login to another host in Terminal.app it gives the error ssh: connect to host [hostname] port 22: ...
0
votes
0answers
67 views

how to SSH to my UNIX box?

I have installed 2 SSH clients on my iPad Air2 running iOS 8.3 and no matter what I do, it won't connect. The iPad just can't see the servers (I have 2). I didn't even get the username prompt. I've ...
1
vote
0answers
69 views

Why does mDNSResponder make Ansible run slowly?

I upgraded my OS to OS X 10.10.4, which swaps discoveryd for mDNSResponder. My Ansible playbooks, which previously ran normally, now run incredibly slowly - tasks that took seconds previously now take ...
3
votes
1answer
368 views

Alternative for `fail2ban` on my server running OS X 10.6.8

I have dedicated my old MacBook as a home server. It runs, among other stuff, the following services: Webserver (Apache, PHP, MySQL) i.e. OwnCloud/WebDAV Torrent client SSH server VPN Some game ...
0
votes
1answer
123 views

Mac Not Saving Passphrase for SSH Keys

I have tried everything for my passphrase to be saved for my SSH keys so that when I restart, I don't have to run any "ssh-add" command. I have tried: Saving my key in ~/.ssh Saving my key in ~/....
1
vote
1answer
450 views

Mac OS X Recovery Mode - Headless Access?

I have a Macbook Pro, which unfortunately the screen has died on. External displays do not work either. I can normally ssh and screenshare into the mac fine, but now need to repair the internal HD. ...
1
vote
2answers
2k views

Can I SSH into my Mac from an iPhone over Wi-Fi LAN with no connection to the internet?

I want to use ssh to get into my mac from an iPhone over Wi-Fi LAN with no connection to the internet. I want to do this to get access to the command line (for playing with programming related stuff) ...
1
vote
1answer
368 views

Yosemite: ssh slow to connect when using DNS alias

Since updating to Yosemite, ssh from my Mac to a DNS alias takes about 7-8 seconds. I've observed the following on multiple Macs running Yosemite. Assume I have a host name alpha, and a DNS alias to ...
1
vote
0answers
29 views

WakeOnLan not working from MacBook Air

I have installed wakeonlan using MacPorts, but I can't get it to work over WiFi. I can, however, use ssh from my MacBook to log in to another machine in the network over WiFi (an Ubuntu OS system) ...
1
vote
2answers
37 views

Disabling password saving for certificates

I work in a HIPAA environment where we purposefully put passwords on our certificates. However, when connecting to one of our servers via SSH, it seems keychain is 'remembering' the password between ...
1
vote
1answer
104 views

SSH private key password never removed with Keychain/ssh-agent

I have an SSH private key with password, and I'm able to add it to KeyChain/ssh-agent and have the password automatically used without having to enter it. Now I'd like to add one more thing: I want ...
2
votes
1answer
243 views

How do I keep an ssh tunnel alive using launchd?

I would like to keep an ssh tunnel alive. Below is my launch agent plist file but it only keeps the tunnel up for a day or two at the most. I'm using OS X 10.10.3. <?xml version="1.0" encoding="...
0
votes
1answer
101 views

Cannot access user files with root using osxfuse

I mounted external server via sshfs root@example.com but I cannot access user files (ie someuser:somegroup) that have no permissions set for other (ie drwx--x--x. 17 graphica:graphica foldername). ...
0
votes
1answer
93 views

How do I enable logging for ssh log in attempts?

I have enabled remote logins via SSH on my Mac. But how do I enable logging of all log in attempts? And where is the log? My /etc/sshd_config has this content: # Logging SyslogFacility AUTHPRIV
3
votes
1answer
457 views

Change background of terminal based on host

Is there a way I can have my terminal dynamically change covers based on the host I am on? For example, the default background (as determined by terminal profile) is black. Maybe there is another ...
1
vote
0answers
122 views

Setup MacBook to accept ARD traffic over SSH?

How to access Apple Remote Desktop (ARD) via VNC-over-SSH? asks how to tunnel ARD traffic over SSH. But the answer provided does not detail the steps required to do so. Would some please provide the ...
2
votes
1answer
400 views

emond keeps me locked out of my server via SSH

I've been grappling with emond (and maybe afctl) all afternoon, and I'm trying to figure out how to fix this. Basically, I'm trying to SSH into my Mac Mini server (10.9.5 with Server 3.2.2) but I keep ...
0
votes
1answer
410 views

SSH from different Wifi network?

I'm currently at college (living away from home) and my iPod Touch is at home. Its jailbroken and has OpenSSH installed through Saurik's Cydia repo. Is there any way I can SSH to get a theme file that ...
0
votes
1answer
114 views

Log into the desktop remotely and automatically

I have an OSX machine I'm trying to automatically run applications on remotely via SSH. Everything works great, as long as the user is already logged into the computer. If I log out, or reboot the ...
9
votes
1answer
8k views

How can I access the keychain remotely from the command line?

I am storing various passwords (e.g. for remote email servers) in my keychain. From the command line, when logged in locally, I can retrieve these via: security unlock-keychain ~/Library/Keychains/...
0
votes
3answers
642 views

Is it possible to change the SSH_AUTH_SOCK path?

I would like to have the ssh-agent socket inside my home directory, but currently it is created inside /private/tmp. I see that the agent is managed though launchctl and this plist: /System/Library/...
0
votes
0answers
62 views

Mac Terminal won't accept £ in ssh password?

I have an issue where I'm trying to ssh into the root account of a firewall from my Mac. I'm on the same network as the firewall. ssh root@1.2.3.4 I'm then asked for my password which contains the £...
4
votes
1answer
286 views

How to unfreeze terminal when SSH connection dies?

I"m using Mac 10.9.5 with bash shell. Occasionally when I ssh into another machine and then the connection dies (e.g. the Internet goes down or I move to a new location), the terminal window with the ...
1
vote
1answer
95 views

SSH rejecting key file with extended attributes

In my .ssh/ directory, when running $ ssh-add dev Permissions 0755 for 'dev' are too open. But looking at the dev file $ ls -lF dev -rw-------@ 1 me staff 1675 Feb 3 09:37 dev The @ at the ...
2
votes
1answer
56 views

Terminal displays directory of previous SSH location even when not running SSH

I am using the terminal app to ssh and when I do, it conveniently tells me (at the very top) what and where I am logged into for example: user@computer:/home/user/directory/ and so forth. However, ...
0
votes
0answers
232 views

How to send 'Insert' via SSH from Macbook Pro Terminal to 'Vim' on Linux?

I have used the Terminal app on my OS X Yosemite Macbook Pro to SSH to a Linux machine. I have opened "vim" text editor, and want to send the "insert" keypress via SSH to vim, to start editing. Sure,...
1
vote
2answers
4k views

Free SSH GUI client with ssh tunnel support for Yosemite?

Is there any free SSH GUI client for Mac OS X? Coming from Windows I would be happy with something as simple as Putty. Features: Free Connection Manager SSH tunnel support Yosemite ready (and ...
0
votes
1answer
374 views

How can use ssh to connect to my university network over VPN

I am still a beginner with using terminal. I am trying to ssh from my mac at home to a linux at my university. I am using VPN to connect to the network. When I ping the IP address of the computer I ...
0
votes
1answer
423 views

Cannot connect to SSH server from Mac OSX

Whenever I try to connect to a remote server using SSH, I get an error "ssh: connect to host x.x.x.x port 22: Connection refused" I didn't install a Firewall or something similar. I know for sure the ...
2
votes
0answers
141 views

Remote login keeps getting turned on

I have a 2013 MacBook Pro. Over the past few months I have noticed that Remote login under System Preferences > Sharing occasionally gets turned on. I notice it about once every week or two, ...
2
votes
1answer
83 views

Open Terminal.app but hold open?

I have a shell script that runs on my mac (./go), it opens a ssh session on a raspberry pi then runs a script which streams video from the raspberry pi to a UDP port on the mac. I also need the mac ...
1
vote
0answers
2k views

sshd: Service exited with abnormal code: 255

Every SSH connection exits with an abnormal code. For example ssh corti@myhost.example.com true results in Feb 11 10:16:47 mac-mini com.apple.xpc.launchd[1]: (com.openssh.sshd.163F2BE0-40C6-4B17-...
0
votes
1answer
312 views

No route to host, unless someone is logged in

When trying to ssh into a remote OS X machine, I get: ssh: connect to host … port 22: No route to host ping or traceroute do not reach the machine either. The interesting detail is that if someone ...
1
vote
1answer
526 views

Configuring OS X Firewall to enable SSH/SCP only on the local subnet? [duplicate]

We would like to configure OS X to only allow Remote File Sharing (SCP) from a specific range of internal IP addresses. That way they only accessible when the user is connected via the VPN. What's ...
1
vote
0answers
51 views

SSH based VPN with tun device

On the ssh man page there is a section called SSH-BASED VIRTUAL PRIVATE NETWORKS which explains how to setup a poor mans VPN with ssh (ssh flag -w). This section is also included in the OSX man page. ...
14
votes
1answer
18k views

ssh -X does not work on Yosemite

Can no longer use X11 with ssh. Have XQuartz2.7.7 installed. Logging in with X11 via ssh gives the warnings Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: ...
5
votes
2answers
598 views

iMessage / iCloud via SSH Port forward to get through firewall

What ports does iCloud and iMessage use and is it possible to use SSH port forwarding via a proxy to use them on a network that blocks the services?
3
votes
2answers
4k views

My iMac has been hacked via sshd. What now?

My iMac runs Mac OS X Yosimite 10.10.1 I accidentally had "Remote Login" enabled in my Mac's system preferences, so the sshd was running. I just notified in Little Snitch's network monitor window, ...
0
votes
1answer
180 views

Connecting to Mac Mini via SSH unreliable

More often than not I am getting this error when connecting to a brand new Mac Mini, firewall disabled: ssh -l [username] [fixed_ip] ssh: connect to host [fixed_ip] port 22: Connection timed out ssh -...
6
votes
3answers
2k 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 ...
9
votes
1answer
2k views

ssh key persists even after I delete the private key from ~/.ssh — why?

I generated ssh keys (public and private) and stored them in ~/.ssh/myServer/. I added the public key to the server's ~/.ssh/authorized_keys file and everything works great! In my effort to try and ...