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

7
votes
3answers
7k views

Run a GUI app on remote computer from SSH

I want to run a GUI application on my Ubuntu computer, but it should started by a shell script on my Debian server trought SSH. Is this possible?
4
votes
1answer
1k views

Easy way to transfer a private key to another machine?

ssh-copy-id makes it easy to transfer a public key to a remote machine. Is there any equivalent tool for moving a private key? update Don't do this! (see answer)
4
votes
1answer
3k views

How to make git to work with pagent(putty) on Windows?

I'm using Windows x64 and I'm not able to make msysgit to work using pagent authentication. Here are some details: Putty is working without pagent without any problems. I have only one key loaded ...
4
votes
3answers
4k views

Putty: how to supress security alerts?

How can I disable security alerts like "The server's host key is not cached in registry, bla-bla-bla", "host identity is changed, there is man-in-the middle", etc They are needless in cloud hosting ...
4
votes
1answer
10k views

How do I remove SSH key passphrases from being remembered by Mac OS?

Mac OS X (Snow Leopard). I accidentally selected the "remember password in my keychain" option when providing the ssh private key passphrase when connecting to a remote server. Now, when I ssh to ...
4
votes
3answers
335 views

/usr/bin/reset disables backspace

Following this question, running /usr/bin/reset destroys my backspace functionality. What can I do? After pressing backspace I get ^?
3
votes
1answer
620 views

What exactly determines if a backgrounded job is killed when the shell is exited, or killed?

This question has come up quite a lot (really a lot), but I'm finding the answers to be generally incomplete. The general question is "Why does/doesn't my job get killed when I exit/kill ssh?", and ...
3
votes
2answers
398 views

SSH as Normal User --> SU --> SCP as Root

I'm on a Win7 box connecting to a linux server. From reading: http://winscp.net/eng/docs/faq_su it looks like I need to open my SCP connections as the particular user. When I connect via SSH, I can ...
3
votes
2answers
770 views

How to copy a file using pscp through an intermediary gateway server hop

I have a linux jump box between me and a remote server. I have seen a few posts on how to do this with scp (e.g. here), but I am on a Windows box, so the situation is slightly different. I want to ...
3
votes
4answers
2k views

Putty title changes after login

I am connecting with putty to a stock Ubuntu machine hosted at EC2, and notice the following: When I connect, the title of the putty window appears at first as the hostname I enter (e.g. ...
3
votes
3answers
247 views

scp/sshfs on a remote 'not direct acessable' machine

Maybe the title must be changed but I have the following situation: I can ssh to a host A From A, I can ssh into a machine B, but this machine cannot be accessed from my computer. The name of the ...
3
votes
2answers
733 views

Redirect all SSH traffic through a “middleman” server

this is my setup right now: A. My NAS with static IP, reachable via SSH from the Internet (OS X) B. a VPS (Ubuntu Server) C. a dedicated server (Gentoo) My question: Due to bad peering i want to ...
3
votes
2answers
781 views

Is it possible/good practice to use same private key for two servers for passwordless login from the same workstation/localserver?

I have two websites. One website is a clone of the other website. When I checked the sshd_config file in both the sites they are exactly similar, except one uses authorized_keys as the identification ...
3
votes
2answers
2k views

SSH authorization key for multiple systems

Somewhere I read that to access a remote machine through SSH we need to copy ~/.ssh/id_rsa.pub of the local machine to ~/.ssh/authorized_keys of the remote machine. I did this and I can access remote ...
3
votes
1answer
3k views

Why auto mounting sshfs using autofs fails?

I'm desperetely trying to auto mount my distant folder using autofs & sshfs, but I can't make it work. (I'm under Fedora 16) This works : sshfs cx42net@xxx.xxx.xxx.xxx:/my/data ...
3
votes
1answer
156 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 ...
3
votes
2answers
2k views

How do I ssh without a password (setting up ssh keys doesn't work)?

I want to ssh, scp, git fetch, etc. without a password. I saw the previous questions, and closed ones regarding this issue, but the suggestion seems to be to use ssh keys. However, after setting up ...
3
votes
2answers
2k views

SSH Key-based authentication fails

I have an RSA key pair set up for authentication into my SSH server. The server is an Ubuntu Server, and I'm trying to log in using Putty on Windows. I load my private key into Pageant (the Putty ...
2
votes
0answers
101 views

How to forward ports through ssh and nat to another machine

I have a problem when using ssh port forwarding and nat simoultaneously. Situation: Machine A runs a webserver on port 8080 Machine B is a raspberry pi which works like a little router. It has two ...
2
votes
2answers
142 views

How to send one command to multiple PC's over LAN (linux)

O/S: Debian Hi, I've got multiple computers in a LAN network that I monitor remotely, they're all running the same hardware and software. To monitor them I simply ssh in to one computer and then ssh ...
2
votes
3answers
549 views

SSH won't work in new version of OS X 10.8.4

I was using a previous version of OS X and used to connected to a server with an SSH console. It used to run X11 after loading my requested programs (Mathematica) on the remote server and was working ...
2
votes
1answer
502 views

Run ssh/scp without .ssh directory or with alternate dir?

I'm inside chroot, and everytime I scp it keeps telling me: bash-4.2$ scp user@example.com:somefile . Could not create directory '/.ssh'. Host key verification failed. Obviously, I have no means ...
2
votes
1answer
422 views

SSH not reading rc files

Once upon a time, an ssh invocation to host1 like ssh u@host1 command would read .bashrc before executing command. host2 is administered by the same people, and reads .bashrc! I don't administer ...
2
votes
1answer
746 views

How to tunnel a local port onto a remote server

I have a domain that i bought from DynDNS. I pointed the domain at my ip adress so i can run servers. The problem I have is that I don't live near the server computer... Can I use an ssh tunnel? As I ...
2
votes
2answers
2k views

ssh and home directory permissions

sshd will refuse to accept public key authentication if the user's home directory is group-accessible, even if ~/.ssh is set to 700? If the permissions on ~/.ssh are acceptable, why do the permissions ...
2
votes
3answers
1k views

Can only ssh into Ubuntu 12.04 alpha machine when logged into console

I recently installed the latest Ubuntu 12.04 64bit alpha (2?) onto a VMware virtual machine in order to check things out. One strange thing I've encountered is that I can only successfully ssh into ...
2
votes
1answer
2k views

what is difference between .ssh and .ssh2 directories

Why I have both in home directory? Is this just different versiosn and one can be deletec? When I generate SSH public/private key with program ssh-keygen, which is used?
2
votes
3answers
2k views

SSH tunnel in Ubuntu

How do I create a ssh tunnel in Ubuntu that is persistent? I have tried a lot of ways but I haven't gotten it to work.
2
votes
1answer
6k views

Is it possible to tunnel https traffic via ssh tunnel with standard ssh-programs?

Can I reroute the https traffic (of an svn repository) via ssh-tunnel. The problem is that the the services that use https don't work if I just create one tunnel for listening with e.g.: ssh -L ...
2
votes
1answer
341 views

SSH running slow on cygwin

I have a Windows XP box with Cygwin running and the SSH service. I'd like to use PuTTY to connect to it from other computers on the local network. PuTTY works fine and I actually get a relatively ...
2
votes
4answers
3k views

Installed SSH on Ubuntu computer, can't connect from computer over internet

I performed a sudo apt-get install ssh on my home PC running Ubuntu. When I got to work, I tried to connect with just ssh x.x.x.x where that is my home IP address. The connection is timing out over ...
2
votes
2answers
2k views

How to paste from clipboard into KiTTY SSH terminal window?

I use KiTTY (a PuTTY derivative) to access SSH servers from a Windows PC. But I can't find how to paste text from Windows clipboard into KiTTY SSH console (neither Ctrl+V, nor Ctrl+Shift+V seem to ...
2
votes
1answer
258 views

Distinguishing local and remote access in shell (TERM-related)

My default TERM is xterm-color. I would like it to be xterm-256color when I am working on my machine locally, but if I ssh to it I want to have it be xterm-color. How do I distinguish these two cases? ...
2
votes
1answer
984 views

How do I get the F1-F12 keys to switch screens in gnu screen in cygwin when connecting via SSH?

I'm connecting to a desktop running cygwin via SSH from the terminal app in Mac OS X. I have already started screen on the cygwin side and can connect to it over the SSH session. Furthermore, I have ...
2
votes
2answers
906 views

How using ssh/scp between non-public machines

I am often in the following situation: I have two machines, A and B, which are on LANs, and have non-public IP addresses. Machine C is on the same LAN as B, but publicly visible. I would like to copy ...
1
vote
1answer
1k views

Unable to ssh in beagle bone black

I wanted to install pip onto beagle bone black,and I tried this: /usr/bin/ntpdate -b -s -u pool.ntp.org opkg update && opkg install python-pip python-setuptools Then it threw errors, ...
1
vote
1answer
630 views

SSH Constantly Hangs at SSH2_MSG_SERVICE_ACCEPT Received

I'm having problems with SSH. I can't connect to anything; every connection hangs indefinitely at SSH2_MSG_SERVICE_ACCEPT RECEIVED. I'm on OSX 10.6.8. I'm thinking that it's a problem with my SSH ...
1
vote
1answer
627 views

Ubuntu 10.04 using ssh without entering my password

I know questions like this have been asked before, and I have read them all (that I found). The problem I have is that we have an embedded linux device that we can log into for debug purposes by ...
1
vote
0answers
184 views

Resume term after ssh disconnect without multiplexer (screen/tmux)

Screen and tmux (like emacs) are fancy feature rich terminal multiplexers designed to let you efficiently manage terminals as if it was 1985 but they just complicate the simple task of resuming an ssh ...
1
vote
2answers
204 views

Remote emacs access to my main computer

I have a Samsung Galaxy Note 10.1 which runs the Android OS. I have a nice keyboard for it and would like to be able to keep editing and working in emacs when I am not by my main computer. My desire ...
1
vote
1answer
409 views

Non-interactive one-time ssh && scp for 100 servers

I need to copy some data from a cluster of very restricted machines through the network which currently has DNS problems (so some connections are bizarrely not working). I found that the only way to ...
1
vote
3answers
1k 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 ...
1
vote
1answer
863 views

Using my putty ssh tunnel with my iPhone or PS3

I'm living in a student residence, which has a proxy blocking a high number of things. I have a (virtual) private server, running with ubuntu 12.04 LTS, with an openssh server. I have configured a ...
1
vote
2answers
263 views

Is it possible to spawn an ssh-agent for a new tmux session?

I've seen lots of hacks for re-establishing contact with a GUI session's SSH agent from within tmux (and screen) sessions. I'm wondering if it's possible to de-couple from the GUI and spawn an ...
1
vote
2answers
4k views

How can I use SSH with a SOCKS 5 proxy?

I don't know much about proxies in general, and especially not SOCKS5 proxies, so sorry if this is a newbie question but I haven't been able to find the answer online or in the man pages. I have a ...
1
vote
3answers
6k views

Where are my private/public SSH keys on UNIX?

I'm starting to understand how RSA and public/private key systems work, and I was wondering where my private and public SSH key are stored. When I go to my home directory, and I browse my .ssh ...
1
vote
1answer
229 views

Which SSH config option stops me from SSH'ing through a SSH tunnel?

I am trying to connect directly to a my work computer (work) which is only available via an outside server (outside). So, the network path is: home » outside » work Ideally, this should work: ...
1
vote
1answer
769 views

Tell git which private key to use for a user without home folder

I was reading the question Tell git which private key to use, and the answer doesn't apply for a case were the user doesn't have any home directory. We're setting up a Jenkins server right now, and ...
1
vote
6answers
175 views

Is there a way to log into a machine using SSH without password?

I know ssh is to create a secure shell connection to a machine, and we call ssh username@ip_address to login the machine. Is there a way that I won't need to enter the password when connecting via ...
1
vote
2answers
595 views

Mapping sftp/scp as a drive letter without user logins

I'm trying to find a software which could map sftp/scp services to a windows drive letter. I know there are quite a bunch of those available, but i haven't found a single one which could run with ...