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
4answers
8k views

how to copy a file over ssh from a remote machine?(linux to windows)

I am using putty to connect to a remote host and I wish to copy a folder containing multiple files from the remote machine to my local machine.I am on a windows machine and the remote machine is ...
9
votes
1answer
5k views

How to force GPG to use console-mode pinentry to prompt for passwords?

Whenever I try to use gpg from a console-based environment such as ssh sessions it fails because the GTK pinentry dialog cannot be shown in a SSH session. I tried unset DISPLAY but it does not help ...
0
votes
0answers
656 views

Unable to connect to amazon ec2 instance over ssh

I am unable to connect to my amazon instance through ssh from a particular internet provider's connection. But I am able to traceroute to that ip from the same internet provider's connection. ssh ...
0
votes
1answer
119 views

Send bash profile for ssh login

At my work, I ssh into a lot of Linux boxes (using MTPuTTY on win 7, though I can use anything if need be, up to and including dual booting Linux). We are not set up so that people's home directories ...
0
votes
0answers
141 views

SSH To My Home Server From Another Location

I am at a location away from home and behind a firewall that does not allow any connections and any ports other than specific port to a specific ssh server. I am using Windows 7 and putty. Trying to ...
0
votes
2answers
279 views

how to launch an sftp transfer via the console

I need to move 5 gigs of files from one remote host onto another remote host, which does not make the scp command available via the console. So i'm contemplating any other options than first ...
2
votes
3answers
2k views

Persistent PuTTY sessions for multiple windows

I'm working in various Linux environments through PuTTY connections which break from time to time. I'm looking for a solution to make the PuTTY windows persist (e.g. if I was editing a file, then ...
0
votes
3answers
54 views

Perform shell operation through secure shell

Is it possible to perform a shell operation from a bash script through a secure shell. Here is an example of why you may want to do this. Lets say you have a simple unix operating system that you ...
1
vote
1answer
2k views

Stop ssh tunnel (stop listening on port without killing process)

In an ssh session, one can start tunneling with the keystrokes ~C and entering (e.g.) -L80:localhost:80. However, is there any way to stop tunneling on that port (short of killing the process)?
0
votes
2answers
411 views

Issues connecting VMWare VM to Windows 7 (host)

I am on windows 7 trying to figure out why i cannot ping my computer or my VM from the other one, yet I am able to ping the router on both and other computers on the network. My desktop is running ...
1
vote
1answer
153 views

SSH rsa key works with external IP not internal IP

I am using rackspace cloud hosting. I have 2 servers behind a load balancer. Each server has an external IP and an internal IP. I want to setup a sync job that uses SSH to transfer files. I made ...
5
votes
1answer
274 views

Does changing the SSH comment of a public key affect the key itself?

Let's say my id_rsa.pub looks like: ssh-rsa SOMERSAVALUE SOMECOMMENT If I change SOMECOMMENT to something else, will it still be valid for authorization with the private key? What's the proper way ...
2
votes
0answers
161 views

Different behaviour when ssh to Windows Cygwin server, depending on password-less or not

I have configured my OpenSSH server on a Windows XP system. Everything is working fine... though it is depending on the way you connect on the machine. Details : - on Windows side, in a domain ...
3
votes
2answers
691 views

Setup -N parameter in SSH Config File

I would like to use the -N flag in my ssh config file, but I'm not sure how to do this? Is it possible? -N Do not execute a remote command. This is useful for just for‐ warding ...
1
vote
1answer
273 views

Kill ssh background process after disconnect / timeout?

I frequently use ssh tunnels to access VNC sessions on remote machines, but this is on my laptop so the connections break when I put it to sleep for the night. If I then try to re-open the connection ...
2
votes
2answers
139 views

How to get ssh connection on MacBook Pro 2,1 with dead video on logic board

The Lapzilla of my stable has given up the video ghost. Everything else works, save for the fact that when booting it either ends up on a white screen, or a blurry black & white checkerboard. I ...
1
vote
2answers
297 views

msysgit stopped asking for a password

I have a remote GIT repository (ubuntu) and am working locally on a windows 7. I had this working nicely, and setup SSH keys. At some point in this process I seem to have disabled GIT/msysgit asking ...
0
votes
1answer
121 views

SSH public key authentication error

I'm trying to ssh to a remote machine using a private key file: id_rsa, however, I'm getting the error: $ ssh -v -i id_rsa user@remote [...] debug1: ssh_rsa_verify: signature correct debug1: ...
0
votes
1answer
1k views

Execute a remote command after sudo - su anotheruser in Rundeck

I'm new with Rundeck and completely amazed with it and I'm trying to execute a job and my scenario is detailed below: Rundeck is configured with ssh passwordless authentication for user master ...
0
votes
1answer
587 views

Mac OS X: Make home directory at login via SSH

I have LDAP server on Ubuntu 12.04 and Mac OS X 10.7.5 client configured via Directory Service. The NFSHomeDirectory property mapped to #/Users/$uid$. LDAP users can login to Mac via login screen or ...
12
votes
5answers
2k views

Stopping people from ssh(ing) into my Ubuntu machine

I want to be able to stop people from been able to SSH onto my machine but still need to SSH out, is this possible?
3
votes
1answer
644 views

sshfs: Input/Output error

I cannot enter my sshfs, although I'm sure that the connection is fine and the destination exists. Every file operation fails with Input/output error. sshfs outputs: $ sshfs -p 7292 ...
1
vote
4answers
2k views

Cygwin cannot create .ssh

I'm having some trouble using Git with cygwin. "Could not create directory '/home/Craig/.ssh'. The authenticity of host 'github.com (207.97.227.239)' can't be established. RSA key fingerprint ...
2
votes
1answer
999 views

How to tunnel a local port onto a remote server

I have a domain that i bought from DynDNS. I pointed the domain at my ip adress so i can run servers. The problem I have is that I don't live near the server computer... Can I use an ssh tunnel? As I ...
1
vote
5answers
3k views

Scripting an 'empty' password in /etc/shadow

I've written a script to add CVS and SVN users on a Linux server (Slackware 14.0). This script creates the user if necessary, and either copies the user's SSH key from an existing shell account or ...
3
votes
1answer
3k views

Does the right half of the rsa public key matter?

In a public key file "id_rsa.pub" generated by ssh-keygen, does the part after the == matter? I ask because when I changed "root@somedomain.com" to "root", it seems to still work. More generally, I ...
-1
votes
1answer
641 views

Can't get my Raspberry Pi to keep a static IP

I recently got given a Raspberry Pi and I would like to be able to remote into it using puTTy from my laptop so I don't have to sit next to my tv with a keyboard and mouse to use it. I am able to get ...
1
vote
1answer
124 views

Strategies in protecting your SSH keys in case of laptop theft

Is there any cool tool that encrypts your ssh keys and locks it down when you shutdown or put your computer to sleep? So in case someone steals your laptop, they can't get into your servers etc.?
1
vote
2answers
93 views

What can I do to configure my SSH such that it pauses for a flaky connection? [closed]

I run ssh from OSX to a Ubuntu box - under home WIFI, everything works perfectly. However, when I ssh from certain external networks, ssh may be working fine for a minute or two and then drop due to ...
1
vote
1answer
855 views

What sequence does PuTTY send for ALT + DEL

When I connect to my Debian Wheezy Beta 4 server with PuTTY 0.62 on Windows 7 I'm experiencing a problem. My login shell is Zsh and it is configured to handle ALT + DEL for the action delete-word ...
3
votes
1answer
1k views

How to restrict ssh port forwarding, without denying it?

Suppose I have created an account whose login shell is actually a script which does not permit an interactive login, and only allows a very limited, specific set of commands to be remotely executed. ...
0
votes
1answer
351 views

Always-On-SSH tunnel

We have a field office that uses a dialup connection with a non-public IP given from the ISP. Dialin is done by GNOME-PPP. How can we hold an SSH connection (with tunnel) open to a server in the ...
0
votes
1answer
127 views

Weird ssh behavior when listing folder

I was trying to get a file from my home PC using SSH, from my Android phone - connection went fine, but directory listing hanged. I've tried then using a PC with ubuntu, in nautilus - hang again when ...
2
votes
2answers
178 views

Managing multiple ssh keys

I have a lot of ssh keys, they are all passphrase protected and managed by ssh-agent. As a result of this, I am now getting "Too many authentication failures" on some connections. As has been ...
3
votes
4answers
1k views

How can I use SSH to tunnel to a port that's open on the machine I have access to but not open to the outside world?

I currently use SSH to tunnel my internet connection, using ssh -p <port> -ND <local port> <user>@<ip address>, and this works great. However, I'd like to bind a local port to ...
4
votes
4answers
66k views

How to run a command file in PuTTY using automatic login in a command prompt?

I am using the following to login automatically to a remote server and then run commands listed in a commands.txt, like this: C:\path\to\putty.exe -load "[Sessionname]" -l [user] -pw [password] -m ...
1
vote
1answer
446 views

Password-less login into localhost

I am trying to setup password-less login into my localhost because it's required for a tutorial. I went through the normal steps of generating an rsa key and appending the public key to ...
2
votes
1answer
133 views

Change colours on Msys

I like to use Msys for SSH (because Putty complicates matters with its non-standard ssh keys), but when I request a directory listing (ls) in an SSH session, subdirectories are listed in a blue colour ...
2
votes
1answer
108 views

Testing for SSH access

I've changed my household router and broadband recently (to BT Infinity), and I've noticed that my SSH server has become fairly unreliable. Of course, I've set SSH to be forwarded to the correct host ...
-2
votes
3answers
1k views

Remote ssh command using sudo

I have this command: ssh user1@192.168.242.16 'sudo -u oracle fgrep ...' can someone explain me how this command works ? I just know that someone is connecting to remote computer as user1 and want ...
0
votes
3answers
1k views

Why isn't passwordless ssh working?

I have two Ubuntu Server machines sitting at home. One is 192.168.1.15 (we'll call this 15), and the other is 192.168.1.25 (we'll call this 25). For some reason, when I want to setup passwordless ...
1
vote
2answers
440 views

Difference between running commands locally vs using SSH to make remote commands

I am trying to SSH into a remote machine, and run a .ksh file on a that machine to run a Java program. If SSH into the machine with a tool like Putty, and run this command: cd ...
1
vote
1answer
60 views

Are there situations in which ssh -t shouldn't be used?

Working within a framework commands are issued to remote machines using ssh. Recently the -t option was added to the command in order to get it to work properly with sudo. However this option will ...
2
votes
3answers
582 views

Are SSH protocol headers sent in the clear over a client-server connection?

I know routing information is always sent in the clear (oversimplification, but bear with me) so in a scenario where there exists an SSH tunnel between a client and a server using non-standard ports, ...
0
votes
1answer
571 views

/var/log/auth.log not logging failed ssh attempts

I'm trying to go failed (either incorrect username, password, or both) on my server. I changed /etc/ssh/sshd_config from # Logging SyslogFacility AUTH LogLevel INFO to # Logging SyslogFacility ...
0
votes
1answer
557 views

Correct password for ssh key rejected when ssh-d into machine

When I am logged into my machine directly, I can do all git operations, and when prompted for a password, the password is accepted. When I ssh into the same box and run git operations on the same ...
0
votes
0answers
97 views

Running different programs via ssh

I got some problem when I tried to run different programs via SSH. The problem is, let's say I have 2 different java programs, then I would like to run them simultaneously on different JVM, in order ...
1
vote
0answers
318 views

CUDA reports no devices present when logging in over SSH

I'm on Windows 7, CUDA 5, but I also experienced this with CUDA 4.2 (prompting an upgrade to 5.) I remote in over SSH (using cygwin's ssh), and when I run the following test program, it tells me no ...
1
vote
2answers
1k views

Putty on Linux not working with username in host name field

I'm setting up a VM based Linux Mint 14 Cinnamon dev env and just installed putty to connect to my Ubuntu servers. Problem is that when I try to use "username@hostname" or "username@ip" (no quotes ...
0
votes
2answers
150 views

run growlnotify over ssh

I am trying to run growl notify over ssh like so ssh andrew@192.168.1.8 "growlnotify -m test" is run I get bash: growlnotify command not found however running it straight from the mac it runs ...