Secure Shell; a network protocol that allows data transfer over a secure channel between two networked devices.

learn more… | top users | synonyms

2
votes
5answers
5k views

Wake-on-LAN over internet is all but impossible

I have a new MacBook Pro that I want to be able to log into through ssh or vnc, but no matter what combination of things I try nothing seems to work. Even tried LogMeIn How do I set-up my MacBook so ...
2
votes
5answers
10k views

Connection closed by remote host

I'm trying to connect to a server using a private key generated through cPanel and stored on my local machine, but I am getting the "Connection closed by remote host". Any ideas? XXXXX-computer-2:~ ...
0
votes
4answers
7k views

ssh still asking for password when trying to log into another pc

I recently constructed a small Beowulf cluster out of some old computers all running Linux Ubuntu 12.04 LTS and have been following the instructions on this page: ...
168
votes
6answers
117k views

Way to avoid ssh connection timeout & freezing of terminal tab

When I connect via ssh terminal to certain servers, it timeouts and "freezes" the terminal (doesn't accept, doesn't disconnect, can't Ctrl-C to kill the ssh process or anything). This is in Ubuntu's ...
251
votes
5answers
53k views

What is randomart produced by ssh-keygen?

When you generate a key, you get "randomart" from newer versions of OpenSSH. I am unable to find an explanation of why, and what I'm supposed to use it for. Generating public/private rsa key pair. ...
70
votes
6answers
66k views

How can I avoid SSH's host verification for known hosts?

I get the following prompt everytime I try to connect a server using SSH. I type "yes", but is there a way to aovid this? The authenticity of host '111.222.333.444 (111.222.333.444)' can't be ...
82
votes
5answers
35k views

Is it ok to share private key file between multiple computers/services?

So we all know how to use public key/private keys using SSH, etc. But what's the best way to use/reuse them? Should I keep them in a safe place forever? I mean, I needed a pair of keys for accessing ...
56
votes
12answers
57k views

Top causes of slow ssh logins

I'd love for one of you smart and helpful folks to post a list of common causes of delays during an ssh login. Specifically, there are 2 spots where I see a range from instantaneous to multi-second ...
45
votes
8answers
300k views

How do I fix a “cannot open display” error when opening an X program after ssh'ing with X11 forwarding enabled?

After launching the X11 app (XQuartz 2.3.6, xorg-server 1.4.2-apple56) on my Mac (OS X 10.6.8), opening an terminal in X11 and running xhost +, I then ssh -Y to my Ubuntu 10.04 VM (running on VMware ...
30
votes
7answers
72k views

List open SSH tunnels

I use a lot of SSH tunnels to various servers on my linux machine (for tunnelling to databases, web servers etc) and it would be really handy to view a list of current open tunnels via a shell script. ...
19
votes
2answers
30k views

Extra configuration required for ssh-agent forwarding?

This guide does a great job explaining how ssh-agent works across multiple systems. I'd like to get forwarding set up as it is in the last set of diagrams, but I'm having trouble tracking down the ...
11
votes
4answers
4k views

What are possible security issues with an SSH daemon?

I'd like to be able to SSH to my Ubuntu 10.04 office PC from the outside. I am thus thinking to start up an SSH daemon on the PC. What are the security issues, possible glitches, specific ...
24
votes
1answer
20k views

Forwarding audio like X in SSH

While it is possible to use X applications remotely by using -X switch in ssh, the sound is being played in remote machine's speaker only. For example if I view a film in VLC/Totem only video is ...
52
votes
1answer
51k views

Where does Putty store known_hosts information on Windows?

How do I tell if Putty already knows about and has cached credentials for specific ssh servers? Another way to ask this question is what is the Windows/Putty equivalent of a unix/ssh known_hosts ...
49
votes
17answers
84k views

Map remote drive in Windows over SSH

Does anyone know of a good (hopefully free) tool that can be used to map a Linux server accessible over SSH/SCP as a Windows network drive? EDIT: SFTP not supported EDIT2: Windows File Sharing/Samba ...
20
votes
4answers
27k views

How to do DNS through a proxy in Firefox?

I am using Firefox 3.5.7 with FoxyProxy. I have an ssh tunnel forwarding 8080 through to an HTTP proxy server on the other end. With FoxyProxy, I send work traffic direct but everything else goes ...
41
votes
5answers
24k views

How do I configure SSH so it dosen't try all the identity files automatically?

I have been putting my ssh identity files inside my ~/.ssh/ folder. I have probably about 30 files in there. When I connect to servers, i will specify the identity file to use, with something like ...
25
votes
4answers
5k views

Is it reasonable to have multiple SSH keys?

So far I've created a separate SSH key for each server I need to login to (for each purpose, to be more accurate). I did it out of a sense of security, just like different passwords to different ...
24
votes
7answers
31k views

Linux “Top” command for Windows Powershell?

I am looking for a PowerShell cmdlet that can provide similar functionality to the Linux Top app. Something that refreshes at some given interval and displays the process list with CPU % util. I have ...
11
votes
1answer
5k views

SSH as socks proxy through multiple hosts

Can the following be achieved with SSH. There are three machines involved: A. My local machine at home B. The SSH gateway server at school C. A workstation in a lab, only reachable through B I ...
13
votes
2answers
18k views

How to keep program running after SSH disconnection? [duplicate]

Possible Duplicates: Keep a program running after closing a console, after the program has started How can I use ssh to run a command on a remote Unix machine and exit before the command ...
12
votes
1answer
11k views

How can I set environment variables for a remote rsync process?

When I use rsync to copy files from one computer to another, an rsync process is started on both ends. However, on the remote end, shell initialization files are apparently not read, so I cannot set ...
8
votes
4answers
4k views

How can I set my computer up for remote SSH access?

I have a Linux machine that I can access by SSH from my laptop when I am inside my house, but when I am using another Internet connection, I can't connect. What do I need to do? I have Verizon DSL ...
24
votes
4answers
39k views

How to transfer my SSH keys to another machine?

I have accounts on two machines: H1 and H2. I created ssh keys on H1 and installed it on S1. I can now ssh to S1 from H1. I want to do the same from H2. How do I install the ssh keys generated on H1 ...
13
votes
3answers
23k views

rsync: failed to set times on “<dir path>”

I am trying to rsync files from one server to another but getting this error rsync: failed to set times on "/dept/intranet/dept/atest/.": Operation not permitted (1) Can someone help me why so ...
12
votes
8answers
42k views

OpenSSH server refuses to accept key authentication

I tried to use public key authentication on my new server, and I came across this problem. $ ssh -v -i .ssh/server 192.168.1.100 OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration ...
3
votes
3answers
3k views

Can I have ssh without scp also?

A project I'm on requires I upload some files to a vendor's remote server. I requested a secure connection, and suggested scp or https or sftp. In response, they stated they could grant me ssh ...
7
votes
5answers
6k views

Must I sftp to an intermediate server?

I can't sftp directly into a particular host. To move a file from my home machine to the host, I must sftp a file to an intermediate host; ssh into the intermediate host; and sftp the file to the ...
6
votes
3answers
4k views

SCP through SSH gateway connection

My network layout is something like this: Now Alice has access to SSH gateway (just gateway from now on) with: ssh alice@external.ip and the authorized keys file on the gateway looks like this ...
6
votes
3answers
4k views

transferring files over two-hop SSH session

I have a Linux box at work that I often log in to from home. The Linux box is on an internal network, but there's a box that spans both networks, so I can log in like so: ssh -tA ...
5
votes
7answers
7k views

Setting up SSH/Git on Cygwin yields “Bad permissions on ~/.ssh/config”

I'm attempting to setup Git with OpenSSH under Cygwin. I almost got everything setup. I have the agent and public key and all that.. but now I get this really weird error: $ git pull -u origin master ...
2
votes
4answers
1k views

How to give computer URL to access over the internet?

I would like to be able to SSH into my macs over the internet using a DNS name like my-imac@example.com or something similar instead of having to enter an IP address every time. How can I assign ...
16
votes
2answers
5k views

What happens to running processes when I lose a remote connection to a *nix box?

I occasionally lose my remote SSH connection to my VPS. I use screen for long-running processes, but am wondering what happens to the processes I had running aside from those run within a screen ...
10
votes
4answers
8k views

User specific /etc/hosts files?

Is it possible to have a user specific hosts file, or some other way to map a ip address to a name on a Linux system. I want to be able to ssh to my local machine from an on campus lab without having ...
9
votes
3answers
34k views

Close SSH connection

I'm using Mac's Terminal App and I know how to connect to an external server via ssh (ssh -l username domain.com). But how do I close the connection once I'm done? Thanks.
9
votes
1answer
4k views

Using the IdentityFile directive in ssh_config when AgentForwarding is in use

Is it possible to specify forwarded keys using the IdentityFile directive in .ssh/config? I ran into this quirk when trying to deploy some code via Capistrano/GIT on our production server. Both my ...
8
votes
3answers
12k views

How can I create a user with read-only access to all files? (ie root without writing permissions)

For backing up my server, I would like to remotely access it via SSH. To minimize all risks, it want to user a user who only has read access, but to all files, just like root. However, he shouldn't ...
6
votes
3answers
8k views

Limit every user to his own home folder only

i have a linux server which users connect to with SSH. my users only upload and download content from their /home folder. Basicly, I want them to be limited to see and use only their home folder. I ...
6
votes
2answers
18k views

pam_unix(cron:session): session opened for user root by (uid=0)

In my SSH log /var/log/auth.log I have the following 2 rows (which are repeated every hour): ... Jan 22 03:28:01 mam CRON[15934]: pam_unix(cron:session): session opened for user root by ...
5
votes
2answers
2k views

Directly connect MacBook to Linux desktop via ethernet for fast SSH?

I am looking at building a Linux desktop—desktop only; no monitor support—and getting a MacBook Pro as my main computer for mobility. I would like—while I am at the office—to basically use my MacBook ...
4
votes
2answers
6k views

Set current working directory on ssh

I am trying to ssh from one machine to another within a Python script (Nautilus script). It works with the following: ssh -t user@server "cd /home/some/dir ; csh" However I don't like the idea of ...
4
votes
2answers
2k views

SSH ProxyCommand on SSH server side

Using the SSH ProxyCommand directive in the client ~/.ssh/config file it is possible to connect to a SSH server through a different SSH server acting as a jump host. Is there a similar configuration ...
2
votes
1answer
243 views

Execute commands using sudo in remote server after logging into PuTTY through batch file

I need to login into remote server daily and perform same set of tasks. I am using Windows platform and the remote server is Unix. I use PuTTY to login to remote server. To reduce the manual work, I ...
2
votes
1answer
136 views

Incorrect output of history command of ssh. How to read the timestamp info correctly

I set the HISTTIMEFORMAT variable to store the timestamp info .bash_history file. I am able to display the history properly if I use interactive shell. But, when I run history command to display ...
2
votes
3answers
3k views

How to use graphical line drawing characters with Midnight Commander on OS X under ssh?

I discovered that when I do ssh to a machine using OS X 10.6 and use mc I do not see the graphical line drawing characters. This does not happen if I open terminal and start mc. I'm connecting using ...
19
votes
2answers
3k views

If I typo my username when ssh-ing, is there a way to go back and change it?

When ssh-ing using putty, I sometimes mistype my username, and hit Enter before I realise my mistake. Once prompted for a password, is there a way to go back and re-enter my username rather than ...
8
votes
1answer
3k views

non-interactive ssh sudo… prompts for the password in plain text

I'm running some non-interactive ssh commands. The ssh authentication is taken care of fine through the ssh agent, but if I run a command that requires sudo then the password prompt in my terminal is ...
6
votes
1answer
1k views

ssh-agent key timeout with screen or tmux on bastion host

Normally I have ssh-agent running, I ssh to my bastion host then open a tmux session and connect to other boxes through that. Key forwarding works for any sessions that I open from that point ...
5
votes
4answers
1k views

SSH asks for password, even with public key installed [duplicate]

Possible Duplicate: Problem with shared ssh keys I have set up pub key authentication between two servers. Everything should work, but I am still asked for the password. Here's parts of my ...
4
votes
2answers
880 views

SSH and Latent Connections (e.g., satellite connections)

Most of the week I live in the city where I have a typical broadband connection, but most weekends I'm out of town and only have access to a satellite connection. Trying to work over SSH on a ...