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

learn more… | top users | synonyms

22
votes
2answers
9k views

Differences between ssh -L to -D

I'm trying to understand the differences between ssh -L to -D. Is there anything else except for that -D is SOCKS only? Thanks!
12
votes
7answers
25k views

With ssh, how can you run a command on the remote machine without exiting?

Normally, if you pass a command to ssh like so ssh me@example.com 'some-command.sh' You get a non-interactive session, and ssh exits as soon as the command (or script, or whatever) is run. How can ...
11
votes
1answer
6k views

Why does my remote process still run after killing an ssh session?

I'm tailing a remote logfile by running this command in a local shell: ssh remotemachine tail -100f /path/to/error_file When I ctrl-c out of this command, it seems that the ctrl-c kills the local ...
10
votes
2answers
802 views

How are public keys “sent” to servers, and how are private keys “used” for SSH?

There are two Linux machines, A and B. Scripts running on A need to be able to SSH into B. So A generates a public key (probably an ssh-keygen-generated id_rsa.pub), and then uses its respective ...
9
votes
4answers
50k views

putty 0.61: why do I see “Access Denied” message after I enter my login id?

I use putty to login to my RHEL 5.3 server. I'm prompted to enter my login as "login as" and I enter my login Id. As soon as I press Enter, I see a "Access Denied" message following which I'm prompted ...
8
votes
1answer
251 views

SSH to Vmware virtual machine with NAT network [duplicate]

right now I am able to ssh to host over internet and ssh from host to the virtual machine. What I want to do is ssh directly to the Guest machine from outside. I tried to do this using iptables: ...
8
votes
2answers
618 views

How to stick ssh-agent locking to the windows login?

Is it somehow possible to automatically unlock my private keys forr ssh authentication at windows login and (un)lock them when (un)locking my session? Currently I'm using msys' ssh-agent but could ...
7
votes
6answers
8k 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. ...
6
votes
1answer
1k views

Is there a way to copy text in htop?

Normally in putty you can just select text to copy it, but I can't seem to select text with my mouse in htop. Of course there's no right click menu to copy, ctrl+c doesn't work, and I didn't see any ...
5
votes
4answers
6k 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
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
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
16k 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 ...
21
votes
4answers
27k 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
45k 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
11k 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
38k 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
965 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 ...
7
votes
3answers
930 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
2answers
979 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
23k 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
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 ...
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 ...
5
votes
3answers
3k 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 ...
5
votes
1answer
513 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
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 ...
5
votes
5answers
6k views

How to ssh a computer over a router

At home I have a linux machine behind a router. How can I ssh it?
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
576 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
20k 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
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
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
2answers
17k 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
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
1answer
19k 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
374 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
4answers
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
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, ...
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 ...
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?
34
votes
5answers
237k 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, ...
23
votes
3answers
22k 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 ...