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

learn more… | top users | synonyms

4
votes
3answers
3k views

How can I change my (Linux) terminal's appearance when I SSH in to a remote machine?

I sometimes find myself with several terminals open, some of which are ssh-ed in to other (production) machines. If I run a command like "drop all tables in the database" on one of those ssh-ed ...
4
votes
4answers
5k views

how to ssh two computers behind NAT and Firewall, without third computer

I am trying to ssh into my Linux box at home. My home is a dorm-style environment - NAT and Firewall with personal laptop running Arch Linux. My work is corporate style Windows 7 - NAT and proxy ...
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
2answers
4k views

SSH to Cygwin is slow to respond

I have a Cygwin machine that runs sshd. When I try to login the machine with SSH, it takes a while to get a response. With the command ssh -v user@cygwin, I see that there are two commands that ...
4
votes
6answers
15k 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 ...
20
votes
4answers
24k views

What could 'Roaming not allowed by server' of ssh client mean?

I'm failing to connect to an SSH server instance and the verbose output contains debug1: Roaming not allowed by server. The following predictable and there avoidable problems arise: Roaming means to ...
12
votes
6answers
41k 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
1answer
10k 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 ...
9
votes
3answers
30k 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
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?
9
votes
8answers
843 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 ...
6
votes
3answers
680 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
1answer
873 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 ...
6
votes
3answers
13k 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 ...
6
votes
2answers
1k 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 ...
5
votes
5answers
7k 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. ...
5
votes
1answer
457 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 ...
5
votes
1answer
5k 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
2answers
6k views

How can I read input from the hosts keyboard when connected via SSH?

I'm currently experimenting with an RFID card reader that emulates a keyboard. When you connect a card, it will read out data from it and then emulate keystrokes according to configuration. I've ...
4
votes
5answers
556 views

Multiple command prompts with one SSH connection?

I have a need to do a lot in vim on a remote server which I need to SSH into. I find that it is best if I can look at multiple documents in multiple windows on my desktop, so to do this I open two or ...
4
votes
3answers
6k 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
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
1answer
3k 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 ...
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. ...
3
votes
3answers
1k views

X Session from Mac

How can I log into an X server from Mac OS X? I know that ssh -X username@host will log me in and I will have the capability to run X applications. On Cygwin/X you can log in and have a whole X ...
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 ...
2
votes
4answers
146 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
1answer
18k 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 ...
1
vote
3answers
355 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
3answers
4k 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 ...
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, ...
0
votes
1answer
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 ...
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?
29
votes
5answers
203k 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, ...
22
votes
3answers
20k 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 ...
13
votes
1answer
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
9k 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 ...
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
3answers
6k 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
3answers
19k 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 ...
5
votes
1answer
2k 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 ...
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 ...
4
votes
2answers
2k 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 ...
4
votes
3answers
21k 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
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
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 ...
4
votes
2answers
6k 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
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, ...