SSH (Secure SHell) is a protocol for running commands on a remote computer.

learn more… | top users | synonyms

1
vote
3answers
739 views

Can't ssh to a machine

All of a sudden, I couldn't ssh to a machine to which I used to ssh earlier. Consider I am ssh-ing from A to B. Output when I run ssh root@ip_addr_of_B I get: Permission denied ...
1
vote
1answer
64 views

ssh -D to my server

I want to route my localhost:1500 to my server in US, my command is: ssh -D 1500 192.241.79.124 password : ... but this error appears : cannot listen to port 1500 could not request local ...
1
vote
2answers
3k views

PHP exec command has the result 0 even if an error occurs

I have this PHP code: $execout=exec('ssh root@xxx.xxx.xxx.xx "sudo /etc/init.d/smokeping reload"',$output1,$result); if($result !=0){ echo"that can't reload"; } else{ echo "successfully ...
1
vote
2answers
2k views

Shell hangs when doing command from ssh

I'm trying to automate a server update process. What this should do is check for git diff files and list them, to later be copied from one place to the other. Here's my script on my local machine: ...
1
vote
1answer
1k views

How can I mount a remote sshfs directory of an publicly inaccessible server on my inaccessible client machine?

This is an extension of the question by @Andrei How to mount remote SSHFS via intermediate machine? Tunneling? I'm in the same situation that I want to mount a remote directory, however the ...
1
vote
1answer
226 views

Why does rsync look for DSA instead of RSA key when run from cron job?

I want to backup files from a server to my local computer using rsync. I can only log-in to the server with an RSA ssh key. I have stored the passphrase to the key in Seahorse Passwords and Keys, ...
1
vote
2answers
2k views

scp hangs on SSH2_MSG_SERVICE_ACCEPT received

I frequently scp my file to remote host. But suddenly it started taking more than 30 seconds to copy 20kb file.It used to take not more than half a second. After referring to some blog I appended ...
1
vote
1answer
140 views

Access X-window and sound on laptop on another Unix

I read up a lot about forwarding x-server onto remote machines, but I feel like I'm too dumb to get it to work. Let me first explain my goal: I have a Rasberry Pi running archarm hooked up to a TV. ...
1
vote
2answers
2k views

How to transparently monitor SSH access/network traffic in Gentoo/general linux?

What's the most effective way to monitor SSH access in Gentoo Linux? My Gentoo box is operating locally behind my broadband router. I have SSH port forwarding on the router and a DNS entry pointing ...
1
vote
1answer
803 views

How to ssh on multiple ipaddress and get the output and error on the local *nix machine?

command="ls -lrt;uname -a;uname -o" for i in 10.38.227.229 10.38.164.103 do ssh auto21@$i "$command 2>&1" >> log #ssh -n auto21@$i "$command" 2> >> log done i am trying ...
1
vote
1answer
999 views

rsync to SFTP while moving completed uploads to another folder

I'm going to be moving a lot of data (30GB) to a server which is split up into multiple 200MB tar.gz files. This is going to take time, and I'm going to need to stop and start my computer again during ...
1
vote
3answers
373 views

User's name appears as “bash-3.0” on SSH shell

I am working on a Redhat server and one of the users' names appears as "bash-3.0" on the "SSH Secure Shell Client." His name is appearing correct under /etc/passwd. How could this happen? How can I ...
1
vote
1answer
519 views

Putty doesn't seem to start from python'd crontab

I have the following Python script, chmod +x'd. When I run this script from the command line and Putty has not been started, it launches putty: #!/usr/bin/env python from __future__ import ...
1
vote
3answers
10k views

can't get gnome-session working over SSH

I am new to using SSH, so sorry if this question is too rudimentary. To sign into my office computer from my home computer through ssh I go through these two steps: first I login to my office server: ...
1
vote
1answer
102 views

Initiate server script from laptop

I have a server that i can ssh into from my laptop. I want to be able to run a script on my laptop that sends a signal to the server which makes the server initiate a given script there. How do I do ...
1
vote
1answer
1k views

GNOME-Terminal: Create new terminal tab on remote machine

Is there a way to open a new terminal tab in GNOME-Terminal when working on a remote machine that is connected via ssh?
1
vote
1answer
819 views

complicated mpd/ssh setup howto?

I've recently acquired a raspberry pi and plan to use it as a home-computer and web/file-server. The setup I have a pretty big (3TB) HD hooked up to it that has all my music on it. I also have a ...
1
vote
3answers
2k views

How can I share a desktop / log in graphically for an Ubuntu that I have ssh but not console access to?

http://www.ubuntugeek.com/share-your-ubuntu-desktop-using-remote-desktop.html tells how to share a desktop by setting multiple features from within a GUI. Is there such a HOWTO that is based on ssh ...
1
vote
1answer
2k views

Why is this scp command creating a directory one level up?

I am trying to copy a file from one machine to another machine via ssh. Both machines are Ubuntu servers. Both machines have exchaged keys so that they can log into each other without passwords. The ...
1
vote
1answer
648 views

SSH tunnel: “channel x: will not send data after close”

When I work with ssh tunnel, I get the following message repeatedly: debug3: channel x(a number): will not send data after close What does it mean? I also get the following messages: debug2: ...
1
vote
2answers
340 views

PGP words of an RSA fingerprint

Is there a program that displays my SSH RSA key fingerprint 43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8 as PGP words? Added on 16th October 2012: I decided to write my own code. I found ...
1
vote
2answers
250 views

How can I use the same IP from the Internet and intranet?

I have an Ubuntu firewall box (Alma), at the office, with a web server on it. It looks like this: [Internet] <-> [DSL Router] <-> [Alma] | ...
1
vote
1answer
665 views

Mounting Remote Filesystem over SSH as a Different User

Due to a breach of security, the administrators of the work server have implemented a new method of security. To log into the server, we must log in as our own user (which has severely limited ...
1
vote
2answers
2k views

ssh + nohup does not work

I'm trying to run a program over SSH that keeps running when I disconnect. This Stack Overflow answer gave me the following command: nohup sleep 30 > foo.out 2> foo.err < /dev/null & ...
1
vote
1answer
529 views

SVN checkout under a different user name

When I ssh into my server I log in under root or my user on the system. However, when I checkout from my svn repos then are then owned by either root or my user, and therefore all files deployed to ...
1
vote
1answer
2k views

CentOS 5.5 SSH with Key for non ROOT user

I tried pretty much everything I could to make this work. I spent literally 6 hours on research and nothing helps to remove "Server refused our key" error. My username I tried to make is "Testuser" ...
1
vote
1answer
2k views

cryptsetup luksOpen only accepts password via ssh

while installing my Gentoo system I encoutered a strange error. One of my disk is encrypted, I have done all the installation via ssh, so did I enter the encryption passphrase via ssh. Now I entered ...
1
vote
1answer
467 views

restricting pushes to selected Mercurial repositories using `ssh` forced commands and `hg-ssh`

The context of this question is the hg-ssh script. It is helpful but not critical to know something about Mercurial. This script sets up a forced command using public keys so the given public key ...
1
vote
1answer
625 views

How do I get QEMU to open without a BadWindow error after ssh'ing with X11 forwarding?

After ssh'ing to a machine (with -X) I run qemu and get the following: X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 25 (X_SendEvent) Resource ...
1
vote
3answers
1k views

How do i execute a remote script with 'screens'?

I need to execute a script locally. The problem is, it needs to use screen and send the ctrl d command. How would i do this? The script will be on my local windows machine. i can use winscp, putty, ...
1
vote
2answers
198 views

ssh fails for an unix server due to dual layer of authentication

I have a server which has dual authentication layer. Meaning first a user has to login to the box using his userid and then use a group id to access the development folder (say). Now I have a script ...
1
vote
2answers
910 views

Git Server Bash and SSH

I want to use Git over SSH with my Linode VPS running Ubuntu 10.04 LTS. Instructions seem pretty easy, in fact given I had already setup my SSH key etc.. All I had to do was instruct my local ...
1
vote
2answers
961 views

ssh-agent error on ubuntu server 10.04 LTS

I have an Ubuntu Server 10.04 installation on Linode. I am trying to use ssh-agent to stop typing my passphrase everytime I need to push some changes to GitHub. I am using the script provided by ...
1
vote
1answer
550 views

CH3MNAS Fun Plug and NZBget. Cannot launch NzbGet 0.7, word unexpected

I have un-tarred the nzbget0.70 debug version and have put it in the /ffp/bin dir. and I have a config file in the /ffp/etc/ dir but when I try to run it, I get the following: ...
1
vote
1answer
2k views

What strings should I look for in /var/log/auth.log?

I wrote a bash command to scan /var/log/auth.log for messages occurring on the current day indicating unauthorised access. Currently it just fetches messages matching BREAK-IN and unauthorized. What ...
1
vote
1answer
192 views

vnc over ssh port assignment

At the office I have on the servers a vnc server running. In Windows I use putty to connect to the server, I log in and then use realvnc to see the desktop. But I cannot get this to work on Linux. I ...
1
vote
1answer
14 views

Can not succeed in excluding user in match directive in SSHD config

I’m having a problem with my sshd config. I want to limit all users of the group www-user to sftp use. All of them but the user yorunokoe. I saw that related question : How to exclude from a ...
1
vote
1answer
36 views

How to rsync files between two remotes with an explicit port and different usernames?

I want to rsync files between two remote servers. I tried to follow the next solution of @roaima: http://unix.stackexchange.com/a/183516/137526, but I need a more delicate solution, for two reasons: ...
1
vote
1answer
28 views

change home folder permissions on exit/disconnect

I have a use case where my folder on the linux server needs to have its permissions opened up so I can use a sudo account to move files from my folder to shared folders. What then happens is often ...
1
vote
1answer
37 views

cannot get screen command to execute code containing DISPLAY=:0

I am trying to ssh into a remote machine and run a shell script, which opens a GUI. I want the GUI to open on the remote machine and remain open (so I am using DISPLAY=:0 nohup). I tried: ssh -t ...
1
vote
1answer
31 views

Setting up port forwarding on router for reverse SSH tunnel

My home PC is behind NAT but my router has static ip address. My work PC uses 3G stick for Internet (So I guess it is like being behind NAT). I would like to create a reverse SSH-tunnel to connect to ...
1
vote
1answer
173 views

Automatically enter SSH password without using SSH Key, 'expect', 'sshpass' or Python

I have small device that starts up a tiny VM of PowerPC linux that I need to SSH into from a script on a tiny version of Yocto linux. The PowerPC VM SSH passwords stay the same, but it resets most of ...
1
vote
1answer
44 views

Allow the restricted rsync (rrsync) script for arbitrary directories with authorized_keys

Automating Backups I would like to implement a backup solution with copies data from various directories from a Web server (WebServer) to a local backup server (BackupServer). The backup should run ...
1
vote
1answer
27 views

How to recover a process GUI after broken pipe

I started a process with GUI from the command line in a remote computer using ssh -X. Knowing it would take a long time to run it, I left it in the background and disowned. As I feared, I had ...
1
vote
1answer
57 views

SSH publickey permission denied (Google Cloud Platform)

We run a small handful of Debian servers on Google Cloud Platform. New servers we setup, we're able to add SSH keys at the point of creation and access the machines via SSH without a problem. Older ...
1
vote
1answer
61 views

Specifying SSH KexAlgorithms works at CLI but not via ssh_config [duplicate]

By default, my SSH client disallows the use of the diffie-hellman-group-exchange-sha256 key exchange algorithm. However, I need to access a server on 10.0.0.1 that requires the use of that algorithm. ...
1
vote
1answer
54 views

Start a python script in `screen` on boot?

I want to be able to start a python script when I boot, but I want to be able to see lines which have been printed during the program. I have been able to put the line "sudo python /path/to/file.py" ...
1
vote
1answer
62 views

How to show and operate a remote Linux desktop when SSH or any other remote service is unavailable? [closed]

The situation is as follows. On Monday, I need to showcase a program that needs the set-up development environment and hardware on my home system, at the university. The ISP are misbehaving and won't ...
1
vote
1answer
47 views

Adding user to ownership in addition to another user [closed]

I had some problems with permissions, the programmers of my website wanted me to add the admin user to the apache group and then set some permissions. My knowledge of Linux is quite limited, so I ...
1
vote
1answer
64 views

Mass deployment of package to multiple Linux servers across different continents

I'm new to here and want to raise an interesting question about mass remote configuration of Linux servers. Imagine you get a list of IP addresses for 100 servers with a fresh install of Ubuntu, ...