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

1
vote
2answers
1k views

GUI to tunnel VNC over SSH

I tend to log into a lot of remote sites, and typically the setup we have is: the gateway is running OpenWRT with an SSH server, there are client machines behind the NAT running UltraVNC. While I ...
0
votes
3answers
402 views

How do I remotely execute scripts on multiple servers, mix output

Hi I'm looking for a piece of software or some sort of technique that would enable me to do following in one terminal window: Take as input a list of ssh-enabled machines with login, password and ...
0
votes
1answer
542 views

Dead simple SSH tunnel for my Windows users

I'm running a Minecraft server, and many of my users are on a college campus whose network doesn't play nicely with Minecraft. I'm looking to package together a dead-simple way of creating a SSH ...
0
votes
4answers
1k views

ban IP on multiple faild ssh login attempts

Is there an easy way to block an IP that runs a brutforce login attack on my sshd? Maybe just an increasing time for the login prompt to appear. I know fail2ban, but that did hang when I tried it. ...
0
votes
1answer
610 views

sftp/fish over double hop with different users

I am trying to set a ssh session over a double hop with different users on each hop to transfer files easily via fish/sftp. my .ssh/config look like Host middle_server User foo ...
0
votes
1answer
573 views

“noshell” for ssh proxy users

I like to setup a special ssh user which is only allowed to tunnel web traffice through my server. I do not want to make an open proxy. This brings me to my question: Is there a "noshell" shell for ...
0
votes
2answers
786 views

How can I mount an encrypted home directory upon SSH login using private/public key to authenticate?

Is it possible to automatically mount an encrypted partition on the server when logging in using SSH keys instead of the regular password? The home folder is a luks-encrypted partition. The current ...
0
votes
4answers
253 views

Run computer with SSH only

I use my Ubuntu computer for downloading torrents via utorrent. I use a webui to control utorrent and i then move the files it has downloaded to different folders using ssh commands (Movies, Music ...
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
798 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 ...
4
votes
2answers
811 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 ...
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
11k 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
343 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
2answers
185 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 ...
3
votes
2answers
466 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
943 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
1answer
221 views

ssh tunnelling port forwarding

I have three computers, A, B, C. A is the computer I'm working on, C is the remote computer I'd like to access. However C can only be accessed through B. Only B has a ssh server, and only A has a ssh ...
3
votes
3answers
267 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
915 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
2answers
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?
3
votes
1answer
4k 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
7k 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 ...
3
votes
1answer
176 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
250 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
1answer
58 views

tmux limit activity-monitor window size

As part of my work I typically need to connect to multiple different servers via SSH. I like to run a local tmux session to manage various terminals and then from within the SSH session to the remote ...
2
votes
3answers
607 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
615 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
477 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
861 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
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
354 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
271 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
1k 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
930 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
67 views

ssh 2 different computers behind same router and modem?

well I have been following every rule out there on Forwarding. I currently have 2 computers, lets call it Computer DOG and Computer CAT. I can ssh into DOG from outside my network perfectly. I went ...
1
vote
1answer
79 views

Is my NAS accessible from the Internet?

I have a FreeNAS server set up to do nightly backups for my various Windows machines. I turned SSH on to make administration a little easier - I have plenty of Linux VMs and it's easier for me to SSH ...
1
vote
2answers
2k views

How to git clone private repos within Vagrant VM, using host's SSH keys?

I'm able to use PuppetLabs vcsrepo to clone public git repos, but I'd like to also be able to clone private repos, using the host's SSH keys. What would the configuration look like for Vagrantfile ...
1
vote
1answer
4k 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
1answer
2k 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
799 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 ...