Secure Shell; a network protocol that allows data transfer over a secure channel between two networked devices.

learn more… | top users | synonyms

4
votes
2answers
373 views

Router eavesdropping on SSH tunnel?

So I'm on a public WiFi network that blocks websites like YouTube in order to conserve bandwidth. I'm assuming the router is monitoring all traffic and rejecting all requests sent to the sites on its ...
4
votes
3answers
1k views

Send SIGTERM signal to a process running inside ssh

Is it possible to send a SIGTERM (or other) signal to a process inside ssh, for example: ssh hostname 'sleep 10; echo done' What can I do to interrupt the sleep command? If I press ctrl-c, the ssh ...
4
votes
6answers
17k views

SSH from Windows to Linux without entering a password

I am trying to use ssh/scp from Windows to Linux without having to enter a password. This is what I have done, and it doesn't seem to work: generated public and private keys using Putty Key ...
35
votes
5answers
257k views

How can I resolve the error “cannot execute binary file”?

When I login using SSH, all I can see is this... -bash: /usr/bin/id: cannot execute binary file -bash: [: : integer expression expected I couldn't do anything in here. Commands such as halt, ...
13
votes
6answers
47k views

How to SSH to localhost without password?

EDIT: Putting exactly what was done. I need to SSH to localhost without a password, the usual way of doing it (with public keys) do not work. user@PC:~$ rm -rf .ssh/* user@PC:~$ ssh-keygen -t rsa &...
10
votes
2answers
12k views

How can you avoid being asked to enter your BitBucket password when you push to BitBucket wiki?

I'm not sure if everyone experiences this - when I edit a BitBucket wiki locally (through a git repository) I have to enter my BitBucket password for every pull and push. Is there any way around this?...
9
votes
3answers
42k views

PuTTY X11 proxy: wrong authorisation protocol attempted

I am trying to connect to an Ubuntu server to work on Qt-creator. Before everything goes wrong, I followed this tutorial. I downloaded putty and Xming and everything was working just fine. then, ...
9
votes
3answers
16k 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 ...
9
votes
8answers
1k views

Save me from gibberish terminal

While logged in to a remote ssh session, sometimes I do cat to the wrong file (a binary or a diretory) and the display converts to gibberish. The only way out is to close the terminal and open a new ...
9
votes
4answers
9k 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?
7
votes
3answers
14k views

SSH Connection refused

I have a mini2440 board that has linux on it. I want to connect to it with a SSH connection from my vmware-ubuntu 11.10. I can ping it. But we I want to connect to it with this command ssh root@192....
7
votes
3answers
1k views

SSH Agent loses identity while restart machine

After creating keys with name id_rsa at it's default location. I am adding identity to SSH agent with command ssh-add ~/.ssh/id_rsa, It's adding successfully. I can SSH without entering pass phrase ...
6
votes
3answers
25k 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 ...
6
votes
2answers
2k views

Strange NS behavior on OS X — can't connect to SSH server

I'm trying to SSH to an Eee PC laptop running Debian on a network where hostnames are automatically registered with DNS via the DHCP server. The Eee PC laptop had run out of power and gone to sleep ...
6
votes
2answers
1k 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 ...
5
votes
1answer
539 views

In your ssh config is it possible to have one host entry for multiple machines on the same domain

I'd like to be able to do something like Host * HostName *.mydomain.com ... So I can type something like ssh test ssh ci ssh dev Instead of having to type ssh test.mydomain.com ssh ci....
5
votes
2answers
2k views

Directly connect MacBook to Linux desktop via ethernet for fast SSH?

I am looking at building a Linux desktop—desktop only; no monitor support—and getting a MacBook Pro as my main computer for mobility. I would like—while I am at the office—to basically use my MacBook ...
5
votes
5answers
7k views

How to ssh a computer over a router

At home I have a linux machine behind a router. How can I ssh it?
5
votes
1answer
6k views

Can I set up KiTTY to send F7 press instead of bringing up Print dialogue when F7 button is pressed?

Can I set up KiTTY to send F7 press instead of bringing up Print dialogue when I press F7? I make intense use of Midnight Commander and its editor, which both rely on F7 (to create a directory and to ...
4
votes
3answers
7k views

SSH bookmark manager for Linux

I have used JellyfiSSH on Mac OSX which basically stores your ssh connection details so you can quickly open connections using the built in SSH client to various servers without having to type in all ...
4
votes
3answers
21k 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

Launching programs remotely via SSH on Windows 7

I've installed freeSSHd server on Windows 7. It works fine but when I try launching any graphical executables via SSH, e.g. "C:\Program Files\GIMP 2\bin\gimp-2.8.exe" or start /d "C:\Program Files\...
4
votes
2answers
3k views

rsync N newest files in a directory

What would be the easiest way to go about rsyncing the n newest files in a directory to a remote server?
3
votes
2answers
3k views

How to keep a remote task running after running it in an SSH console? [duplicate]

Possible Duplicates: How to keep program running after ssh disconnection. How can I use ssh to run a command on a remote Unix machine and exit before the command completes? I am running a ...
3
votes
1answer
1k 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. ...
2
votes
1answer
20k views

Call putty/plink to start a remote SSH linux script with user input

Seemingly simple question, which yields slightly undesired results. Execute putty to start a script on a remote linux server which requires user input The remote script does a read -p "Please enter ...
2
votes
4answers
151 views

Manage a few Linux servers at once

I have a small cluster that consists of a few Linux nodes. There's a shared NFS, and I have the same user account with shared SSH keys on all nodes, but other than that each node has it's-own file ...
2
votes
2answers
20k views

SSH error ssh_exchange_identification: read: Connection reset by peer

I am trying to access ssh to a server but got "ssh_exchange_identification: read: Connection reset by peer". The same client works well when I move the computer to home but show the error when the ...
2
votes
1answer
256 views

Can I get OpenSSH's sshd to accept a login for a non-existent user?

I'm trying to set up sshd to do some funky things on a dedicated server. (Which is to say, don't worry about why I'm asking such a strange question; I'm just experimenting to see how I can abuse ...
1
vote
3answers
382 views

lazy prompt for ssh public key passphrase

I have ssh public keys set up on my computers. They have passphrases. Whenever I need to, e.g. push to github, I have to type in the passphrase. Each time. And I'd rather ssh remembered on subsequent ...
1
vote
2answers
3k 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
4answers
5k views

Remove all Mac generated files '._' with bash

I'm trying to find the command to delete recursively all Apple Mac generated files such as '._' from the drive. So far I have: find . -name '._*' -exec rm -rf {} \; however it doesn't seem to do ...
0
votes
2answers
2k views

Copy files over SSH without using SCP?

I'm currently aware of SCP and SSH. There are times when I'm doing some work within a file that I need to download it locally to work on it. Which invokes: Print the working Directory/Path Get File ...
0
votes
3answers
2k views

How to run a local application on a distant server with SSH?

I would like to know if it is possible to run a local application on a distant server using the SSH protocol?
0
votes
2answers
4k views

Connecting to SSH from behind an HTTP proxy

I'm behind a corporate network with an HTTP proxy. I also have an SSH server to reach on port 22. I don't have any kind of control over that server: I'm not root and even if I were I'm not allowed to ...
24
votes
3answers
24k views

Run Remote ssh command with Full Login Shell

I would like to do something like ssh example.com 'ls' However per ssh manpage: If command is specified, it is executed on the remote host instead of a login shell. So what happens is that ...
15
votes
2answers
3k views

How to prevent clearing of terminal output when I “exit” an SSH session?

This is the situation: I open a terminal in Ubuntu, and do ssh host-1, which works as expected. From host-1, I do ssh host-2, which again works fine and connects me to host-2. From host-2 I do, for ...
11
votes
2answers
2k views

How to determine the port allocated on the server for a dynamically bound openssh reverse tunnel?

When creating reverse tunnels on recent versions of OpenSSH a remote port of 0 can be given to bind any available port: -R [bind_address:]port:host:hostport ... If the port argument is `...
8
votes
3answers
11k 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 ...
7
votes
3answers
7k 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 ...
6
votes
2answers
2k views

Launching firefox on remote server causes local firefox to open the page instead

Right, this is strange. I am connecting from my laptop (LMDE) to a remote host (SUSE Linux enterprise) using ssh -X. I want to launch a Firefox instance running on the remote server so I can have ...
6
votes
1answer
2k views

How to release ports on the SSH server when a reverse ssh tunnel disconnects abruptly/uncleanly

Ok here is the issue, We have a some hardware we install at our customers' locations, that hardware connects to our ssh server and establishes a reverse ssh tunnel so we can gain access to several ...
5
votes
2answers
4k 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 ...
5
votes
1answer
5k 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 ...
5
votes
1answer
3k 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 ...
4
votes
2answers
7k views

How to use ssh-copy-id on a non-standard port

I'd like to use key-based authentication to login to one of my computers. It has sshd running on a port that is not the default of 22. I want to use ssh-copy-id to add my key to the list of authorised ...
4
votes
2answers
1k 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
28k views

How do I debug “X11 connection rejected because of wrong authentication”

I have a problem with X forwarding through SSH. I've battled for ages, but no-one can seem to help. I'm now taking a different tact. I would like to know how I would debug the errors? What logs ...
4
votes
1answer
620 views

Does a Windows 7 system volume encryption tool exist that allows remote unlocking via ssh during boot phase?

Does a tool/method exist which allows encrypting a Windows 7 system volume while providing the possibility to remotely unlock it via ssh during the boot phase? Is it even possible with Windows 7 (I ...
4
votes
1answer
5k 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, ssh/...