2
votes
3answers
240 views

How to stop being logged out of SSH sessions when locking the screen in OS X 10.9.1?

Every time I lock my screen I get logged out of any active SSH sessions. I've added the following to my ~/.ssh/config file, but I still get logged out: Host * ServerAliveInterval 60 How can I ...
0
votes
1answer
232 views

SSH remote using XQuartz dosent work in Lion

I was using previous version of Mac and used to connected to a server with SSH console.It used to run X 11 after loading my requested programs(Mathematica) on remote server and was working ...
1
vote
0answers
1k views

How to have sshd re-read its config file (without killing ssh connections)?

How can I get the ssh server to re-read its configuration file (/etc/sshd_config), without killing existing ssh connections? EDIT: If I run kill -HUP <SSHD_PID> I kill the connection.
2
votes
1answer
5k views

SSH request timeout every time

I am trying to access a storage space we have at work via ssh but I get a timeout every single time (Mac OS 10.7.5 - Terminal). I checked firewalls, settings, even turned off Little Snitch, and port ...
4
votes
1answer
691 views

SSH, passphrases, keychains, Could not open a connection to your authentication agent

I will be very surprised if anyone has the answer to this. I have googled for a long time but no luck. As an iOS developer who will shortly be welcoming a new team member I want to set up a ...
5
votes
1answer
11k views

How to restart sshd in OSX Lion?

I have configured ssh keys for github. I have multiple ssh keys configured already. I need to add new ssh keys for bitbucket. But it does not seem to be working. How do i restart sshd in OSX Lion?
3
votes
1answer
962 views

ssh terminal window closes immediately when opened

I am seeing some odd behavior when using the Terminal app to open an ssh window to a remote machine. I normally connect to many different Linux servers from my MacBook Pro running Mac OS X 10.7.3, ...
3
votes
2answers
638 views

SSH Key Error, sudo works fine

When I try to ssh (using ssh user@server.com) into my server at home from either the local network or from outside, I get the following error: But if I use sudo ssh user@server.com, it works with no ...
9
votes
3answers
4k views

ssh -A doesn't properly enable forwarding of authentication agent connection

I love ssh -A, which allows me to use my local ssh key when establishing a connection from a remote server. For example, I ssh -A host1.example.com and then from there I can ssh host2.example.com (or ...
5
votes
1answer
5k views

How do I enable X-forwarding on OSX Lion?

ssh works fine when when I log-in from OSX Lion to Lion or Lion to Ubuntu. ssh -X (X-forwarding) works fine when I log-in from Lion to Ubuntu. However, I can't seem to get ssh -X to work from Lion ...
4
votes
3answers
6k views

How to manage multiple ssh sessions with ease on Mac OS X

At my upcoming job i will handle many servers with SSH access. It will be like ~100-120 hosts, with different username on most of the hosts, and i'm pretty sure i will not remember each host domain ...
1
vote
2answers
594 views

How to fix a Lion upgrade that killed SSH keys?

I just upgraded to Lion and find now that my ssh keys are not working properly when trying to log into various servers via SSH. I've checked permissions on the ~/.ssh directory and the ...
1
vote
0answers
80 views

Why opening a ssh connection to Lion is taking too long?

Why is SSH taking too long to open when I SSH to Lion. I have to wait ~30s to see the Password prompt. The DNS is working on the Lion server.
2
votes
1answer
176 views

“PTY allocation request failed on channel 2” while using SSH

These days when I try to SSH to my server I get this error: PTY allocation request failed on channel 2 I used to SSH to that server for about 2 years. What happened to my OS (OS X lion) this week ...
4
votes
1answer
1k views

Open iTerm2 SSH session in new window instead of new tab

Now that I figured out how to set iTerm2 as the ssh:// URL handler, I'd like iTerm2 to respond to an ssh URL by opening a new window instead of opening a new tab in an existing window. Is this ...
16
votes
1answer
5k views

Set iTerm2 as the ssh:// URL handler

Currently, Terminal is set to handle SSH urls. For example, if I do: $ open ssh://machine.example.com Then it will spawn a new SSH session in terminal. I'd like these to be opened in iTerm2 ...
6
votes
1answer
1k views

Using SSH on an iMac running Lion

I am trying to get SSH/SFTP working on my iMac running Lion so that one of my friends can connect to me remotely. I have managed to get it working using my local user account, but I need to understand ...
9
votes
3answers
4k views

ssh-under-cron stops working in OS X 10.7 Lion

Just upgraded from Snow Leopard to Lion, and my cron jobs that use ssh have stopped working. It appears that ssh-agent is no longer functioning as expected. Here's a bowdlerized version of my ...
6
votes
4answers
10k views

Mac OS X Lion and sshpass

I've upgraded from Mac OS X Snow Leopard to Lion. I used several scripts with sshpass but after I upgraded to Lion the following error appears: Permission denied, please try again. debug1: ...