Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices.

learn more… | top users | synonyms

28
votes
1answer
33k 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?
7
votes
1answer
4k 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 ...
11
votes
2answers
15k 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 ...
10
votes
1answer
9k 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 ...
9
votes
1answer
8k views

How to mount remote SSHFS via intermediate machine? Tunneling?

I would like to mount a remote file system (A) using SSHFS, but sometimes I have IP address, access from which is not allowed. So my plan is to access it via another machine (B) in that network. Do I ...
8
votes
4answers
3k 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 ...
8
votes
3answers
7k views

SSH Reverse socks tunnel

ssh -D can make a socks port at local machine, which pass the traffic to the remote, then to other places. ssh -L port:host:hostport, listen port at local machine, pass the traffic to "host:hostport" ...
6
votes
2answers
13k views

Can I automatically login to ssh using passwords from OS X keychain?

I need to login to an ssh server which doesn't support key based authentication. And I don't want to type the passwords every time. I am using OS X Lion (10.7.2). I have added the passwords to the OS ...
5
votes
3answers
3k 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 ...
2
votes
4answers
765 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 ...
2
votes
3answers
2k 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 ...
15
votes
2answers
4k 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 ...
8
votes
3answers
8k 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 ...
5
votes
3answers
7k 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 ...
5
votes
2answers
17k 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 ...
4
votes
5answers
4k 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 ...
4
votes
2answers
1k 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
2answers
2k 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 ...
8
votes
4answers
7k 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 ...
7
votes
1answer
3k 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 ...
7
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
5answers
3k 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
2k views

SSH from public network?

Is it safe to SSH to a machine while I'm using unsecure wifi network in public places? Machine would also be placed behind a router.
4
votes
1answer
961 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 ...
4
votes
3answers
21k 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.
4
votes
2answers
4k 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
4answers
633 views

Problem with shared ssh keys

Following the process I've used in other environments, I've tried setting-up shared keys between my Mac and my CentOS 4 webserver. I've seen the same problem with my older Ubuntu 7.10 workstation ...
2
votes
3answers
5k views

Can gedit on mac be used to edit files over ssh?

I use a linux machine at work and a mac at home. I can ssh from my machine at home to my work machine. But the only editor that I have access to on the command line then is vi, which I don't like. ...
1
vote
1answer
76 views

Can PuTTY open SSH link similar to Terminal for Macintosh?

I’ve got a SSH link (ssh://) in 1Password that if I was using a Macintosh I could just click and have it open a session in Terminal. Is there a way to click an SSH link (ssh://) in Windows and have ...
1
vote
1answer
2k views

Ubuntu X11: Is it possible to open an X application in another users session

Is it possible to somehow open an x application on another users display? Say that i have user A who is logged on to the ubuntu desktop, and user B who is accessing the ubuntu machine via SSH. I ...
1
vote
1answer
4k views

Cannot successfully configure OpenSSH via CYGWIN in Windows 2008

I need help configuring OpenSSH on Win2008 via CYGWIN! THANKS in advance! I am trying to configure an OpenSSH server on Windows Server 2008 Datacenter via CYGWIN. I have installed and configured ...
1
vote
1answer
2k views

Mount network drives over ssh on Windows [duplicate]

Possible Duplicate: sshfs equivalent for windows? There is a remote filesystem I can reach through ssh. On Linux, there are several ways of dealing with it. I like sshfs, because with it I ...
19
votes
2answers
2k 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 ...
5
votes
2answers
1k views

Capturing remote output locally in Mac Terminal

I want local programmatic access to ssh output in Mac Terminal. First, I tried redirecting the output of each command to a file. The file was perfect, but of course it was on the remote server, and ...
5
votes
1answer
472 views

How to tunnel Windows Remote Dektop through two machines

I have the following situation - I actually made this little diagram for you: Which commands do I need to issue where in order to be able to remote access the Windows XP machine "B"? I know that it ...
3
votes
1answer
2k views

How do I change my default shell on a remote server?

I tried changing it the way recommended in How do i change my default shell from bash to zsh?, as shown below: chsh -s $(which zsh) but that gave me an error. The system asks me to use ypchsh ...
3
votes
4answers
708 views

When I ssh into a ubuntu machine, what kind of shell am I using

I keep reading about interactive, non-interactive, login, and non-login shells. (This is in the context of which of the .bash* files is read). I don't understand what each type of shell is, so let's ...
3
votes
3answers
1k views

Why is it a lot faster to call rm on a directory than deleting a folder from the GUI (Linux) over SSH

Out of curiosity, why is it a lot faster to delete a folder / folders in Linux (I'm using Ubuntu) over SSH by calling rm -rf somefolder than deleting the folder from the GUI (right-click then "Move to ...
3
votes
2answers
393 views

How to reload an SSH session state?

How do you save your current SSH state on a remote machine and then recall that state at a later point? I have seen it done but not sure of the software involved.
3
votes
4answers
425 views

Access Windows box from Linux

how can I access Windows box from Linux both GUI, or non GUI? opposite of something like VNC or SSH.
3
votes
1answer
328 views

Agent Forwarding not working

I have a machine (lets call it MachineB) that I create an ssh tunnel to, so I can then ssh into the rest of the hosts in the cluster. AllowAgentForwarding is enabled on MachineB's sshd_config and ...
2
votes
2answers
116 views

Will a query which may take hours to execute keep executing on remote server if I close the connection after executing the command?

If I connect to a remote database server via ssh, start mysql client and execute a query which may take a couple of hours to execute, then close the connection, will the query continue to execute ...
2
votes
1answer
1k views

OS X Terminal Ignoring SOCKS Proxy Setup

Previously I've used an SSH tunnel: ssh -D 1234 user@remoteHost As a system wide proxy in OS X by going to System Preferences -> Network -> Advanced -> Proxies -> Tick SOCKS Proxy and enter ...
2
votes
3answers
19k views

Can't connect with putty to a Linux server

I can't connect with Putty to a Linux box. In the putty log I only get 3 lines and the last line is "Server unexpectedly closed network connection". FTP and ping to the Linux box works. Putty is ...
2
votes
5answers
42k views

How do I transfer a file to my server using PuTTY?

when calling SCP in PuTTY on my Win7 box, it doesn't let me use C:/, but I also have no idea where on my local machine it will look for files by default. None of program directory or user directory ...
2
votes
4answers
3k views

SSH authentification with public key fails

I have my id_rsa.pub key under my /home/user/.ssh. I carefully copied that key and paste my key to respository Git account. While trying to connect from my local system to my git respository, I got ...
2
votes
3answers
7k views

ssh - no route to host

I have 3 machines (A, B and C) behind WLAN Router. From B i can make ssh to A and from A to B also. Ssh between C and A is also working (both destination, C->A and A->C). But when i try to connect B ...
1
vote
1answer
226 views

Unable to SSH to my virtual machine via Windows Power Shell ISE

I have a Linux VM guest running in my vmWare host that I want to access using Windows PowerShell ISE. I normally can SSH to my VM, but I cannot with Windows PowerShell ISE. When I try to do SSH to my ...
1
vote
1answer
7k views

How to communicate between two VirtualBox VMs running on same host

I am running two VM instances of RHEL/CentOS on my VirtualBox instance running on host Windows 7. The problem is when I am executing VBoxManage list vms -l | more and then sunsequently VBoxManage ...
1
vote
3answers
2k views

How to override SSH default identity?

Short version: how can I disable/override the default SSH identity file locations ~/.ssh/id_{rsa,dsa} and force SSH to use another one (first)? Long version: I'm trying to setup gitolite with ssh ...