SSH (Secure SHell) is a protocol for running commands on a remote computer.

learn more… | top users | synonyms

5
votes
1answer
377 views

Why is it possible to leave CHROOT with this sftp config?

I'm trying to create the user lenny, that has read and write permissions in the folder /home/lenny/ and has no shell but only access via SFTP. I'm doing the following: useradd lenny mkdir /home/lenny ...
13
votes
3answers
21k views

Which users are allowed to log in via SSH by default?

When I set up my Debian 6, I was wondering, which users apart from root whose password I know can log into my system via SSH? When I install Apache 2 a user called www-data gets created. Does this ...
1
vote
1answer
4k views

How can I resolve the “invalid ELF header” warning when trying to SSH and what does it mean?

I'm getting some kind of warning when checking my connection to github. Why is it happening and how can I resolve it? $ ssh -TI ~/.ssh/id_rsa git@github.com dlopen /home/ubuntu/.ssh/id_rsa failed: ...
1
vote
1answer
123 views

SSH server timing out localhost and reassigning breaks X11 output

I'm running a python script on a remote server via SSH, however at the end I require it to save a graph using pyplot, which requires the X server to be active. As this runs for a long time I have ...
1
vote
1answer
786 views

Is it possible to redirect X of an ssh session to the display of a connected vncviewer

I have a setup of three machines. Machine A runs a vncserver and an ssh server, Machine B runs a vncviewer, Machine C runs an ssh client. The vncviewer on B connects to the vnc server on A. The ...
1
vote
3answers
2k views

Can't SSH into Any Server

I work on remote servers frequently, but for some reason I cannot discern, today I am unable to ssh into anything. Everything comes back with Write failed: broken pipe. I know this is a common ...
5
votes
1answer
239 views

Does a remote system accessed with SSH have a system clipboard?

According to wikipedia in the bash shell control+u Clears the line content before the cursor and copies it into the clipboard If I'm ssh'ed into a box and try that, the text certainly disappears ...
87
votes
19answers
119k views

Why am I still getting a password prompt with ssh with public key authentication?

I'm working from the URL I found here: http://jaybyjayfresh.com/2009/02/04/logging-in-without-a-password-certificates-ssh/ My ssh client is Ubuntu 64 bit 11.10 desktop and my server is Centos 6.2 64 ...
2
votes
2answers
988 views

log remote X session from ssh (PuTTY)

I've googled alot about this and can't find a way to do this (or if it's even possible) I want to log a user on a remote machine in his X session (Gnome) from a ssh in a windows machine with PuTTY. ...
2
votes
1answer
641 views

Why am I not able to login directly using SSH

Suppose, the server address is abcd.com. On my local machine at my workplace, I have to login to that server, using ssh <my employeeid>@abcd.com Then, to login to user myname , I have to use ...
3
votes
2answers
909 views

Upload file over ssh and execute command on the remote machine

I am trying to find the simplest way to upload a file using ssh and after that run a command on the remote machine within the same ssh session for some post-processing, so that I don't need to login ...
1
vote
1answer
146 views

How to see output of a running program over ssh

I use debian 6 on an embedded system which is supposed to run a program called pilot. The OS is configured to login as root without asking password (there is no monitor nor keyboard connected). After ...
1
vote
5answers
3k views

Execute a command on multiple hosts, but only print command if it is successful?

Here's what I want to do. I want to check over 100 hosts and see if a file exists on that host. If the file does exist, then I want to print the hostname and the output of the command. In this ...
1
vote
0answers
682 views

ssh: “Error reading response length from authentication socket”

I have a Makefile with some ssh and rsync commands. All of them are executed correctly, but give the following error message: Error reading response length from authentication socket. I don't like ...
1
vote
2answers
2k views

Specifying outgoing interface for SSH tunnel

I have a machine with two public IP addresses on two interfaces. This machine is running sshd. Is there a way to specify, when creating a tunnel with a SOCKS interface (i.e. -D), which interface to ...
6
votes
1answer
574 views

caching a master passphrase on a linux server

I am trying to use keychain on debian latest stable with some difficulty. Searching online I could not find a solution, but thought perhaps a different approach or a different tool might be better in ...
1
vote
2answers
650 views

How does this shell command work?

The following command puts the content of the local id_rsa.pub into the authorized_keys file on the host. But I don't quite understand how cat and | works together to achieve this goal, can someone ...
1
vote
1answer
473 views

SSH tunnel: “channel x: will not send data after close”

When I work with ssh tunnel, I get the following message repeatedly: debug3: channel x(a number): will not send data after close What does it mean? I also get the following messages: debug2: ...
1
vote
2answers
209 views

PGP words of an RSA fingerprint

Is there a program that displays my SSH RSA key fingerprint 43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8 as PGP words? Added on 16th October 2012: I decided to write my own code. I found ...
1
vote
3answers
4k views

Opening files from Ubuntu server over ssh from Mac Terminal

So I SSH into a Ubuntu server and try to open the file in a Mac program (Coda) and get an error: Couldn't get a file descriptor referring to the console Using the command open myfile.html This ...
2
votes
1answer
301 views

Is this possible to customize auth.log about which key was used?

I use a classical pair of private/public key in order to connect into servers. For now, we have one dedicated account, let's say foo, which is used by multiple users, each with their own pairs of ...
0
votes
2answers
2k views

How to direct bash network request through a socket5 proxy?

I know how to use http_proxy to redirect http request, but how to redirect the data with a socket5 proxy such as a SSH tunnel?
2
votes
1answer
3k views

Headless Debian Server + Windows Clients + X11 Forwarding

I have a headless debian server that I SSH into regularly. I want to know set it up so that users can ssh in and then run something like iceweasel, and a window will popup on their machine which is ...
2
votes
1answer
279 views

How should I start X after ssh'ing into a remote box?

I am trying to syncronize my clipboard with a remote machine using XQuartz and xsel. It works, but only after I run an X windows program: connecting from Mac OS X with Quartz running and the ...
2
votes
2answers
905 views

Is there a clipboard on non-GUI Ubuntu / Linux systems? Can I synchronize it with my local (OS X) clipboard?

I spend a lot of time on Mac OS X as a desktop system, and on the Mac there are two nice little utilities for the command line, pbcopy and pbpaste which can accept stdin and write to stdout. Is there ...
2
votes
2answers
441 views

using watch with ssh

I have a script: export TERM=xterm watch -t -d -n 1 'netstat -veeantpo | grep 43597 when we run this script though ssh, it does not determine the monitor resolution. so lines are wrapped although ...
1
vote
1answer
142 views

Are the SSH manual pages wrong?

The ssh manual pages states the following: -L [bind_address:]port:host:hostport Specifies that the given port on the local (client) host is to be forwarded to the given host and ...
17
votes
3answers
27k views

Can I connect to Windows machine from Linux shell?

I can connect to Linux machines from Windows using PuTTY/SSH. I want to do the other way round - connect to a Windows machine from Linux. Is this possible?
0
votes
0answers
62 views

Is it possible to download a file locally when I've already ssh'ed into a remote computer? [duplicate]

Possible Duplicate: SSH easily copy file to local system Most of the remote download commands seem to involve commands like scp, which are usually used without ssh'ing first (if I recall ...
5
votes
1answer
999 views

playing a sound/notification in finch over ssh on my local machine

So I have finch, a command line chat client (think pidgin) running on a remote machine that I ssh into. finch has notification sounds and can run a command when certain events occur, letting you pass ...
3
votes
1answer
7k views

SSH asking for passphrase on public key with no passphrase set

I have been using public key authentication on my servers for a while now, but I am experiencing issues on a new 'client' trying to connect to github. I have read many threads to verify that my ...
0
votes
1answer
402 views

SSH, FTP, HTTP stopped working

I'm facing a problem with a Linux webserver of mine. It's a VM Ubuntu 10.4 LTS which runs a Wordpress network site. Out of the blue with no changes being made on the back end, ftp has stopped as has ...
0
votes
1answer
207 views

How does one properly use the nautilus & command in a graphical SSH into debian 6.0.4?

Last login: Wed Mar 21 20:10:33 2012 from astrolab17.astro.washington.edu 1 td% nautilus & [1] 9847 2 td% Initializing nautilus-gdu extension And then I quit nautilus. The thing is, though, ...
2
votes
1answer
294 views

Script to let the user cancel a shell logout

I want to write a script to display a message and possibly cancel a logout from an interactive shell. This is because I often run background jobs in some of my shells and in the spur of the moment I ...
6
votes
3answers
3k views

Are there disadvantages in SSH tunneling?

I recently "bought" a VPS that I want to use as a Proxy to be able to use some sites and stuff that I can't reach from germany. Since I was yet too lazy to set up Squid and OpenVPN (which I ...
11
votes
3answers
1k views

Adding a user who can only execute scripts remotely

I would like to create a user who can only do one thing: via ssh specify a script ( and commandline arguments to the script ) that resides in one particular folder ( for the purposes of this question ...
2
votes
1answer
2k views

Problem with pam_mount and sshfs

I'm trying to configure automounting of users home directories using pam_mount and sshfs (users are LDAP users on remote machine). I configured pam_mount: <?xml version="1.0" encoding="utf-8" ...
2
votes
1answer
575 views

How can I tell if sshd is running with ClientAliveInterval > 0?

The title pretty much says it all, I'm a user on a system, and I want to know if that system is running sshd with a ClientAliveInterval > 0, which would tell me if I need to worry about using ...
2
votes
3answers
391 views

Help me to replace sshfs with ssh?

I love to do just this: $ sshfs mountPoint myServer $ cp thisFile mountPoint I am now using LiveCD and I do not have sshfs utility available and I need run $ sudo dd /dev/sdb2 > mountPoint, how ...
2
votes
1answer
947 views

How to script a database migration using SSH?

I am trying to create a sync.sh script that coordinates with our less-than-ideal version control for our website. This script will migrate a copy of the live database to our local development ...
2
votes
3answers
1k views

Kill backgrounded SSH when shell exits

I'm trying to spawn an SSH from my bash profile script that runs in the background for connection sharing (via its control socket). The problem I'm running into is a reliable way to ensure the SSH ...
28
votes
1answer
31k views

How does tcp-keepalive work in ssh?

I am trying to code a shell-script that uses a ssh-connection for doing "heartbeats". I want to terminate the client- and server-side of that connection after a certain timeout (after the connection ...
6
votes
3answers
16k views

How to write a bash script, that logs onto an other machine to do stuff?

Is it possible to write a bash script, that would be started from machine A, logs in on a different machine B by ssh (both machines A and B would be Linux-Machines), copys some files on to machine B ...
6
votes
3answers
3k views

Passing SSH options to git-clone

I connect to my server using SSH: ssh user@server -p 2224 -zZ abcd I also have a git repository on my server. The only way I know to clone is: git clone ssh://user@server.com:2224/path/to/repo ...
1
vote
1answer
2k views

Tmux border split in rxvt

I'm attempting to connect to my Arch server running tmux from my work Windows PC. I've found that while Console2 does a decent job with most things, it's not perfect, and I get all sorts of graphical ...
2
votes
1answer
475 views

xmodmap equivalent in bash

I'm constantly on bash via ssh, on a computer that doesn't have X. In my computer I've switched the keyboards' Super and Alt keys with xmodmap. Is it possible to do it on the computer in which I log ...
1
vote
4answers
2k views

How to find which machines are idle on a cluster of many nodes

I run measurements on a cluster consisting of 32 nodes/machines. I do not require all nodes, only 4, for example. The problem is most of the time, the nodes are busy with other people running their ...
3
votes
1answer
192 views

How are loaded SSH keys referenced by name?

I'm using chef's knife ec2 tool which requires the name of a loaded SSH key (that was created in the Amazon EC2 control panel) It seems strange to me that it uses a name to reference the keypair - ...
22
votes
2answers
6k views

Using an already established SSH channel

I have an already established ssh connection between two machines. Is there a way to send commands to the remote machine from a shell script that is run on the local machine, using the already open ...
4
votes
1answer
2k views

How to print from remote over SSH to local LAN printer?

OK, so it is fairly straight forward to to run apps from a remote server on my local X screen as though they were local apps. The question is, when trying to print, the remote app only sees printers ...