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

3
votes
1answer
882 views

Prevent an already running background process from being stopped after closing SSH client

I have a process running on my Linux machine (Debian squeeze) that takes hours (or days) to finish. I don't want to stop it to restart it again with screen, tmux or with an output redirect to nohup. ...
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
1answer
622 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
4answers
841 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
155 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
1answer
672 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
3answers
254 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
75 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
3answers
975 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 ...
1
vote
1answer
265 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
563 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
757 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
583 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
689 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
641 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
621 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
815 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
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 ...
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
379 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
280 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
573 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
3answers
1k 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
247 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
307 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
3k 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 ...
3
votes
2answers
927 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
3k 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
2answers
3k 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
3k 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 ...