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

5
votes
2answers
4k views

SSH tunnel to home network, and access router web interface

I'm trying to use an ssh tunnel from a remote location to connect to my home network and access the router web interface. I have SSH access to the home network, and I can connect to the gateway ...
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
4answers
4k 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. ...
4
votes
2answers
908 views

Unable to ssh to a Linux VM after a day

I have a machine running 4 VMs on it. There is one Fedora VM which is causing me some trouble. The IPs of the VMs are something like 10.100.100.* I have a Windows PC which is in the same network. It ...
4
votes
3answers
4k views

How to change the number of columns on a putty window to more than the screen width?

I am on windows and often have to ssh to linux machines. Though as much as I would love to have an alternate ssh client, none really comes part to Putty. One thing or the other always breaks, even in ...
4
votes
1answer
4k views

How to setup ssh, key-based (“password-less”) logins to a Linux/MacOSX sshd server via Windows, Linux, or MacOSX clients?

How does one setup ssh, key-based ("password-less") client logins to a Linux/MacOSX sshd server via Windows, Linux, or MacOSX clients? [Seeking both basic, conceptual understanding of key-based, ...
4
votes
3answers
12k views

Can't get keyboard to work correctly in putty

I'm using putty on win7 as client, to log into ssh on a debian server. But I've met a strange problem about keyboard behaviors on putty console. I noticed that it's about keyboard config in putty. ...
4
votes
1answer
4k views

How can I route *some* traffic over an SSH SOCKS proxy on OS X?

I have a SSH SOCKS connection running for VPN purposes, and this works beautifully. By using either FoxyProxy for Firefox, or a .pac file for OS X's Automatic Proxy Configuration option, web traffic ...
3
votes
1answer
317 views

Unknown linux process with random command

I have a unknown process when I run top: When I kill the process it is coming again with another random name. when I check the rc.d levels and init.d there are many random name similar like this ...
3
votes
2answers
2k views

Transferring environment variable through SSH / quoting in bash/sh/csh/tcsh

I want to transfer an environment variable over SSH. The "correct" way is using SendEnv/~/.ssh/environment, but that requires the server to support AcceptEnv or PermitUserEnvironment, which it does ...
3
votes
2answers
959 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
1answer
626 views

Can I make ssh-agent wait until I use ssh to prompt for a password?

I have ssh-agent set up to automatically start and prompt when I open a terminal window, as is explained here. It gets somewhat annoying though since many times when I open a shell I don't plan on ...
3
votes
3answers
2k views

Smartcards for storing gpg/ssh keys (Linux) - what do I need?

I'm interested in storing my SSH keys and gpg keys on a smartcard for added security. However, I'm a bit uncertain on a few points, which are as follows: How many keys can I get on a card? I assume ...
3
votes
4answers
8k views

SSH from host machine Win7 to guest Fedora Machine in VirtualBox

I'm using VirtualBox on Windows 7 to run Fedora 7. I seem to have my SSH on, as /sbin/service sshd status tells me. When I do an /sbin/ifconfig, I get this: eth0 Link encap:Ethernet HWaddr ...
2
votes
0answers
348 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 ...
2
votes
4answers
953 views

A decent remote shell from UNIX to Windows? [closed]

I'm on Linux and develop on a Windows 7 box virtualized via VirtualBox. My usual way of developing consists in editing source files from Linux via nautilus/SMB (smb://192.168.1.4/...) then when I'm ...
2
votes
2answers
697 views

How to rsync via gateway ssh?

I want to rsync my local files with a backup which I have on a server which allows access from where I am right now only via a gateway. So I came up with the following rsync -avz -r --stats ...
2
votes
2answers
158 views

Unable to get profile variable using ssh

Unable to retrieve the profile variable using ssh. server2 ==> user apptst ==> bash profile has $APPHOME variable. Was trying to retrieve the value from server1 using ssh but failed. Used options ...
2
votes
3answers
1k views

Running rdesktop through a SSH tunnel in one command

I am running ssh server -L 3392:192.168.1.138:3389 in one terminal window, then running rdesktop 127.0.0.1:3392 in another to connect to a Windows machine through an SSH tunnel. How can I merge this ...
2
votes
3answers
343 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 ...
2
votes
1answer
684 views

How can I copy the output from a remote command into the local clipboard?

I use iTerm2 as my terminal client in Mac OS X. On the local system I can use pbcopy and pbpaste to transfer data between the system clipboard and the terminal, but of course this doesn't work when ...
2
votes
0answers
2k views

SSH tunnel over HTTP(S) proxy (Reverse RDP)

I've been trying to accomplish this scenario: HOST_WORK is behind non-transparent squid_proxy (its not, but to get outside you need to use it, all other packets are black-holed on gateway not to ...
2
votes
1answer
1k views

Remote Desktop through multiple ssh tunnels (A - B - C)

I have 3 machines. Machine A which can access B, and B which can access C (which is a windows computer) How can I connect with remote desktop directly from machine A to C with ssh tunnel
2
votes
1answer
3k views

Hostmonster Subdomain redirected to home server IP: How to ssh into home server using subdomain

I setup a home server to play with. Instead of remembering the IP address, I created a subdomain on my hostmonster personal website (http://subdomain.domainname.com) and redirected it to point at my ...
2
votes
3answers
2k views

How to allow fast user switching on a remote Mac?

Our server has been locked by a person who haven't logged out after working on it, so now I cannot access it without restart. Can I somehow allow via SSH fast user switching without restarting the ...
2
votes
2answers
1k views

Autostart SSH tunnels on load (Ubuntu)

Every time I login into my computer I start a SSH connection to a remote computer for database work. How can I automate this in Ubuntu so that I don't have to type this in each time I login to my ...
1
vote
2answers
91 views

YouTube not working via SSH tunnel proxy to a U.S.-based IP address

YouTube is blocked in my country. To connect to this site, I created a SOCKS5 SSH Tunnel proxy using this command and configured Firefox accordingly; 111.222.333.444 is a U.S.-based IP address: ssh ...
1
vote
3answers
292 views

SSH Tunneling in Layman's term

What exactly is SSH tunneling? What is the difference between the terms: SSH Tunneling and Port forwarding? What is the exact difference between different types of SSH tunneling methods? Local ...
1
vote
1answer
83 views

OpenSSH, FreeBSD screen overwrite when closing application

I installed a fresh FreeBSD 10 on a VM and connected via SSH and I've noticed that whenever i close a program (e.g., htop, top, nano etc) the contents of the session gets overwritten. This doesn't ...
1
vote
4answers
5k views

How to have multiple windows in a SSH terminal session?

From Mac OSX I login to a remote server that handles parallel computing jobs. I am not able to install anything on this server as it is administered by the university. I have multiple jobs running and ...
1
vote
4answers
3k views

Rsync root files between systems without specifying password

This seems very tricky to me. I've set up my two systems so that I can rsync files between them as me, without specifying password. Now the the problem is to rsync files that belong to root. On both ...
1
vote
1answer
268 views

VNC tunnel via SSH connection

Here is the situation: Server 1 - I have direct SSH access to this machine. Server 2 - Can only be accessed via Server 1 (SSH). (Both Linux boxes.) Is there a way to set up direct VNC access to ...
1
vote
4answers
607 views

HTTP proxy over ssh?

I can browse the internet by using a SOCKS proxy : ssh -D 1080 myserver I now want to set up a HTTP proxy server, and the server then sends the HTTP package to the SOCKS proxy. If this is possible, ...
1
vote
2answers
2k views

Accessing Internal Server from Outside through SSH

The issue is as follows: I am using Ubuntu Linux. I am working from home, and I need to access a PostgreSQL database severer within my company's network. Call the DB server X. For security reasons, ...
1
vote
1answer
194 views

Start a Windows console program from a Mac

Is there any straight way that one can start a Windows console program from a Mac? Preferrably I would like to something with ssh, but as I am in a private network without Internet, I am not so afraid ...
1
vote
4answers
769 views

transfer information about the connection from ssh client to ssh server

suppose I have the following ssh session: userA@boxA -> userB@boxB -> userC@boxC now, from boxC, as userC, I would like to have the information that the ssh connection came from userB@boxB ...
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
615 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
738 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
2k 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
660 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
640 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
825 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
2answers
2k views

execute ssh command without password? [duplicate]

Possible Duplicate: How do I set up SSH so I don't have to type my password? i execute the following command :- ssh -l admin hostname command but each time i execute it, it ask me to ...
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 ...
5
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
3answers
4k 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 ...
4
votes
2answers
1k 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 ...
4
votes
1answer
4k 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
5k 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 ...