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

0
votes
1answer
117 views

I broke SSH by using chmod on an EC2 Instance — How do I correct?

I have been running an Amazon EC2 Instance for a while, and recently accidentally changed permissions/ownership on folders recursively. I can no longer SSH into the instance. I do not recall what the ...
1
vote
3answers
15k views

Can't connect with putty to a Linux server

I can't connect with Putty to a Linux box. In the putty log I only get 3 lines and the last line is "Server unexpectedly closed network connection". FTP and ping to the Linux box works. Putty is ...
1
vote
2answers
359 views

log into SSH server using a subdomain by adding an “A Record”

I SSH into a series of static IP addresses, but it's easy to forget which one is which. I'd like to replace the static IP addresses with a subdomain of a domain I own. I.e., 55.55.555.55 --> ...
1
vote
3answers
59 views

Is it possible to combine these two ssh commands into one?

I'm using bash on Mac 10.9.1. Right now, I execute these two commands to ultimately get to the server I want access to ssh me@intermediate and then once logged in, I execute ssh me@destination ...
1
vote
1answer
19 views

Run sed as a one-off ssh command

I would like to substitute a string with another in a file on a server of mine. I've tried doing this: ssh $REMOTE_HOST sed 's|export ${KEY}=${VAL}|export ${KEY}=${NEW_VAL}|' "$ENV_FILE" And a ...
0
votes
0answers
18 views

Disappearing Crontab, Odd Files

I have a number of Debian-based systems running on an ARM-based SBC connected to a network and they've been running for years. All of a sudden, when I log onto several devices, the cron file is ...
0
votes
0answers
16 views

Can't write files using new user on Linux Ubuntu via SSH

So I just added a user to my server, let's call it "user2", when I tried uploading a file via Filezilla while logged in to "user2" I got the error open for write: permission denied, so I assume ...
0
votes
0answers
23 views

use sock proxy in command line

I set up the sock proxy using ssh with Secrete socks successfully and I can visit the web site that is blocked previously (say youtube, Yes, I live in China). The problem is I still have issue in ...
0
votes
1answer
13 views

How to recover SSH private key pair on OpenStack

I've been using a virtual machine on OpenStack, and I lost my RSA private key. Is there anyway I can get to access this virtual machine? Of course, without using the RSA key. I was thinking about ...
2
votes
0answers
19 views

Strange behavior on SSH public key login

I'm really stuck here. I've been trying to ssh into my ec2 server from local with a public key but it is not working. -> I get permission Denied (public key). The set up is as follows: Local: ...
1
vote
3answers
17 views

SSHing into a Ubuntu VM instance

I have an Ubuntu VM instance running on my laptop. Both Host and VM run the same OS - Ubuntu 12.04. I tried to ssh from host like ssh username@<VM-IP> It tries for some time and then says ...
0
votes
0answers
8 views

Connecting to ssh server that only accepts local connections

This is the situation right now if I want to connect to my university server for using some statistical software made available. I connect my laptop to the university VPN I use putty to establish an ...
1
vote
0answers
18 views

SSH connection not possible in local network

Today I realized a very strange thing: I have a server (running Ubuntu Server 12.04.4 LTS) in my local network whose SSH port is accessible via the internet (I can connect to it using ssh ...
1
vote
0answers
6 views

Scroll with mouse in tmux without mouse highlighting controlled by tmux

From this question, Scroll shell output with mouse in tmux the setting setw -g mode-mouse on allows mouse scroll in tmux. This also causes mouse highlighting by click and drag to be controlled by ...
0
votes
2answers
4k views

sftp limit user to directory

I need to limit sftp for a user to a certain folder. So far I have followed this tutorial to the letter: http://shapeshed.com/chroot_sftp_users_on_ubuntu_intrepid/ It works in the sense that I can ...
1
vote
2answers
504 views

SSH key / authorized_keys management tool

We have a handful of developers and a dozen servers each with several accounts on them and manage our ssh public keys by manual ssh-copy-id. Does anyone know of a tool/script to manage ssh ...
0
votes
2answers
23 views

Creating remote user to launch one file

Here is the problem: I have made something with python that works with virtually any OS, except windows, and I have been told the people who are going to evaluate/use/try it only have windows ...
1
vote
1answer
15 views

How to keep sshd alive on MAC OSX?

How do I keep sshd alive so I can connect at any point? I'm not trying to keep an existing SSH connection alive - I can't create it in the first place. Environment: Mac running OSX 10.9.3. ...
0
votes
1answer
22 views

ssh authorized_keys permission denied only until file is listed/stat'ed - VERY STRANGE

Ubuntu 14.04LTS running openssh. I'm getting a Permission denied (public key) when I try to ssh in using my public key. /var/log/auth.log shows "Could not open authorized keys ...
5
votes
1answer
192 views

How can I delete a file that “Does not exist”

File exists on a Synology 5-Bay NAS. It appears there was an error with the file name, it contains two invalid characters as well as a few others that were changed. (I have the original file ...
0
votes
0answers
9 views

Making proxies on Debian

Hi guys I am trying to create SOCKS Proxies on my VPS and currently am not getting too far so any help is well appreciated. Here's a few details on my VPS: It is running Debian linux, has 512mb ram ...
0
votes
0answers
30 views

Intermittent SSHD multiple personality disorder

I have a weird problem on a Debian Jessy box: when trying to SSH in, sometimes everything goes smoothly for days, and sometimes... It goes nuts. The madness PuTTY would tell me that the SSH key ...
2
votes
2answers
2k views

SSH Connection Error : No route to host

There are three machines in this scenario: Desktop A : user@1.23.x.x Laptop A : user@1.23.y.y Machine B : user@192.168.z.z All the machines have Ubuntu 11.04 (Desktop A is a 64bit one) and have ...
1
vote
2answers
2k views

Permission problems with rsync

I wanna do daily ssh synchronization of some of my local machines files with my server. I want to do this via rsync, since it sounds the most promising tool for this task to me. Sadly I get the ...
0
votes
0answers
10 views

Timeout with VNC connection from windows 7 to SLES10SP4

I'm having an issue establishing a VNC connecting to a SLES10SP 4 server using PuTTY on a Windows 7 workstation. Remote Administration is enabled in YaST, as are all the other appropriate settings. ...
0
votes
2answers
512 views

Limiting ssh to sftp only?

I use SSH keys to allow passwordless logons to my box. I want to limit them to SFTP only. I have the following in my authorized_keys file which appears to work: command="internal-sftp" ssh-rsa ... ...
0
votes
3answers
2k views

New terminal window (duplicate session) from Putty command line?

Being on Windows and accessing Linux via Putty, is it possible to spawn new terminal (Putty) window from the command line? I.e. to send something to Linux, while responding on which, it initiate new ...
0
votes
0answers
13 views

JVM exception, server not responding, cant kill process with PID

My server did actually hang , now via ssh i cant kill the PID , or screen -x => hit 'stop' Java HotSpot(TM) 64-Bit Server VM warning: Exception java.lang.OutOfMemoryError occurred dispatching ...
1
vote
3answers
1k views

How to override SSH default identity?

Short version: how can I disable/override the default SSH identity file locations ~/.ssh/id_{rsa,dsa} and force SSH to use another one (first)? Long version: I'm trying to setup gitolite with ssh ...
0
votes
2answers
35 views

PuTTY remote command containing while loop

I am attempting to automate several common tasks that I SSH into a remote server to do. For this, I am using PuTTY and its "remote command" option (Connection > SSH) in several saved sessions. My ...
3
votes
1answer
2k views

Execute local script requiring arguments on Linux via plink

Is it possible to execute (from windows) a local script with arguments on a remote linux system? Here's what I got: plink 1.2.3.4 -l root -pw mypassword -m hello.sh Is there a way to do this ...
0
votes
1answer
12 views

Reattach to a process after ssh disconnect

I logged into the server using Putty/ssh started a process and walked away. Came back to find the putty session had timedout/terminated/become inactive. When I log back in the process is still there ...
0
votes
0answers
8 views

Debian 7.5 Prevents Access to Router, Hardware is OK

My Problem: I can't access my router from the Problem OS (Debian 7.5) of my main computer. I am sure the hardware is okay. It would be problematic to reinstall the Problem OS. Problem OS Symptoms ...
0
votes
0answers
15 views

Intermittent disconnections when using OpenVPN over SSH tunnel; possible iptables issue?

I've recently set up a Debian Wheezy server with OpenVPN to help out some friends in areas where internet censorship is a problem (including the blocking of VPN traffic in general). To overcome this, ...
62
votes
7answers
55k views

Too many authentication failures for *username*

I have a hostgator account with ssh access enabled and when trying to upload the generated .pub key file with this command: rsync -av -e "ssh -p2222" /home/user/.ssh/key.pub ...
53
votes
2answers
56k views

How to convert .ppk key to OpenSSH key under Linux?

I know that is possible to convert .ppk under puttygen in Windows, but how to do that on Linux? Is this possible ?
0
votes
0answers
12 views

How can I copy files from a Google Cloud Compute Server to my local machine

I'm trying to download all of the server files from Google Cloud Compute (running Linux Debian). I'm extremely unfamiliar with SSH and Google Cloud Compute as a whole. I'd prefer either copying all of ...
1
vote
1answer
15 views

Why does 'export foo=1' not get read when I use ssh?

I'm trying to set a remote environment variable explicitly in an ssh command: ssh worker-2 "export OPENBLAS_NUM_THREADS=1; echo $OPENBLAS_NUM_THREADS" Strangely, this prints just a blank line, but ...
16
votes
2answers
25k views

How to get file/folder size with SSH on linux?

I am using SSH to connect to a CentOS server and I want to get the file in mb of some files and folders, how can I do it?
1
vote
1answer
383 views

Is it possible to build an LFS system on another computer through ssh?

I am in the beginning stages of building an LFS (http://linuxfromscratch.org) system, but the thing is I don't have any space on my laptop to build it on. However, recently the GPU on my desktop went ...
0
votes
1answer
18 views

Jenkins Publish over FTP sending the entire site instead of updated files

I have a Jenkins server installed on my local server. I have managed to build artifacts from svn repository and deploy to a remote server using 'Publish over SSH' and 'Publish over FTP' but my problem ...
0
votes
0answers
12 views

how to avoid the x terminal forwarding

I use our remote server along with a team. apparently they made all the apps automatically do x forwarding. I know this b/c now if i simply want to run a git command git pull I get this error: ...
-1
votes
2answers
16 views

trying to login automatically into a server using sudo ssh cmd in script [on hold]

I am new to Shell scripting. I want to login to a server using a script. The normal command I use is --> sudo ssh . when i tried putting this into a txt format file and tried running, it throw an ...
5
votes
1answer
320 views

Can't open an SSH session because of OpenSSL version mismatch

I just ran apt-get upgrade, and according to /var/log/apt/history.log, openssl has been updated to version 1.0.1e-2+rvt+deb7u7. Now I have one SSH session still open, but I can't open another one. I ...
1
vote
1answer
19 views

Can't disable SSHD banner

So, I have a WD MyBookLive NAS, which runs an ugly PPC build of Debian Squeeze. It has SSH access enabled, and when I log in, I get a long banner message (closer to an epic saga in length) about ...
4
votes
3answers
9k views

scp doesn't work but ssh does

If I want to send something via scp to server: $ scp file server: _____ _____ _____ $ , then three lines are printed and file is not copied. However I can connect to server via ...
2
votes
0answers
33 views

LC_LOCALE settings interactions between Mac OSX and LINUX via SSH

I have been struggling with the following problem for years now. I have never been able to solve it, and I adopted several workarounds to keep being able to work. However now I can't stand it anymore, ...
0
votes
1answer
20 views

Small bootable package to enable ssh client?

I've been trying to find the smallest possible package to put on a cd/thumbdrive that will allow me to use an ssh client on a wired networked computer. I'm talking about really barebones stuff, no ...
2
votes
3answers
6k views

One user can use SSHFS, other user gets “remote host has disconnected”

I have two users with valid SSH accounts on a server. Both users can login via ssh successfully. When trying to mount SSHFS, usera can mount with no problems, while userb gets the error: remote host ...
0
votes
1answer
188 views

Unable to execute command or shell on remote system: Failed to Execute process

On my Ubuntu virtual machine, I run: ssh windowsxp@10.0.0.2 'dir' When I tape the password, I get this error: Unable to execute command or shell on remote system: Failed to Execute process. Why ...