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

learn more… | top users | synonyms

1
vote
2answers
142 views

ssh key doesn't work for one server but works for another [duplicate]

debug ssh works Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: /home/vinatia/.ssh/id_rsa debug1: Server accepts key: ...
1
vote
3answers
1k views

How to use SFTP on a system that requires sudo for root access & ssh key based authentication?

I want to be able to use SFTP to edit files that require root permissions. I'm using SSH Key based authentication - rsa key on smart card. If the system requires sudo to perform root level commands, ...
1
vote
1answer
1k views

How to Block SSH Brute Force via Iptables and How does it work?

I'm planning to add the following rules to iptables to stop ssh brute force attack which are common these days. -A INPUT -i eth0.103 -p tcp -m tcp --dport 4522 -m state --state NEW -m recent --set ...
1
vote
2answers
712 views

How to forward port by (sub)domain name?

I have this setup: a (Host) FreeBSD 9.2 host server running VirtualBox with another (Guest) FreeBSD guest server. I have set up port forwarding on the Host to the Guest like this: VBoxManage ...
1
vote
2answers
4k views

Bash script calls expect script with master SSH connection

I'm trying to write a bash script that calls an expect script to establish a master SSH connection to be used for the remaining SSH commands in the bash script. ~/.ssh/config: ControlMaster auto ...
1
vote
2answers
144 views

Reverse socks5 using SSH

Setup: Server is a virtual machine Server have a local ip adress Server is restricted so that it can't reach the internet (not sure how) Client machine have access to both server via SSH Client ...
1
vote
3answers
175 views

How to execute applications in existing X window from virtual console?

I run Debian Wheezy and have Xfce as my X-Window Manager on virtual console 7, which starts up automatically. Once I've logged on and I'm using the xfce interface, is it possible for me to press ...
1
vote
1answer
360 views

How to export a function in bash over ssh?

I would like to write a function in bash, then export that function and execute it over ssh. Is that possible, and if yes, how? I tried #!/bin/bash function myfunc() { echo $1 } export ...
1
vote
1answer
464 views

startx from mac osx to RHEL6

I am trying to get a GUI over ssh -X. My RHEL6 server did not have X Window System and a graphical desktop environment. So I installed using yum groupinstall "X Window System" Desktop. It installed ...
1
vote
1answer
793 views

stdin : is not in tty

I am trying to make backup from server1 to server2 by using below command in ssh [user1@server1 ~]$ mysqldump -u dbuser -p"dbpwd" --opt dbname \ | gzip -c ...
1
vote
2answers
779 views

How to extract archive via network

I have two Solaris servers. On server1 I have a file, archive.tar.gz. I need to extract it using ssh to server2. So, I write the commands: ssh server2 < archive.tar.gz | gunzip -c | tar -xf - -C ...
1
vote
1answer
52 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
1k views

How to see all commands executed by the current user, in all sessions/screen/byobu terminals?

If there is debian box, some users have access to the root account, some of those users open an ssh connection and start executing commands, some open screen or byobu or other similar tools to execute ...
1
vote
3answers
334 views

How to view traffic over a forwarded ssh port?

It is possible to setup an SSH port forward where the ssh client prints out the traffic exchanged over the ssh port to the screen or a file. I am trying to debug a problem and want to see what is ...
1
vote
1answer
556 views

Multiple SSH tunnels (local and remote forwarding) over one master OpenSSH connection? Good idea?

The question Using an already established SSH channel has an answer that intrigued me. It suggests that I can reuse an existing SSH connection. However, after further reading, I see that this solution ...
1
vote
2answers
951 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
1k 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
130 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
1answer
237 views

Having the 'id_rsa.pub' file in my dotfiles public repo securely

So this is something that I'm wondering, how can I have this file in my dotfiles GitHub repo? I'm sick and tired of having to generate a new SSH key every time I'm on a new computer or re-install my ...
1
vote
2answers
246 views

How to troubleshoot failed X11 forwarding with ssh?

When I try to establish an X11-forwarding connection to myserver, I get the following error: % ssh -X myserver xlogo X11 connection rejected because of wrong authentication. X11 connection rejected ...
1
vote
1answer
102 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
520 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
494 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
625 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
2answers
3k views

How to attach to remote machine's local display session over ssh?

Scenario: Linux mint is running on a machine at my home. I have some gui applications open on it. I'm away from home but want to get at the open applications. I have cygwin/x and I know how to ssh ...
1
vote
1answer
1k views

SCP and/or SSH command with password in line

First, I'm TRYING to use rsa keys because I'm using the script to create RSA keys, but initially I have to connect to the remote machine to pass over the newly generated authentication key. Having ...
1
vote
3answers
181 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
311 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
5k 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
91 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
747 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
464 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
523 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
3answers
2k views

Can't SSH into Any Server

I work on remote servers frequently, but for some reason I cannot discern, today I am unable to ssh into anything. Everything comes back with Write failed: broken pipe. I know this is a common ...
1
vote
1answer
380 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
178 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
655 views

Is there a clipboard on non-GUI Ubuntu / Linux systems? Can I synchronize it with my local (OS X) clipboard?

I spend a lot of time on Mac OS X as a desktop system, and on the Mac there are two nice little utilities for the command line, pbcopy and pbpaste which can accept stdin and write to stdout. Is there ...
1
vote
2answers
195 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
442 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
2answers
820 views

Running any kind of login script when sh is linked to bash

My problem: My web host offers ssh to their shared server. I want to set up a couple of aliases and such, so I'm trying to get a login script of any flavor to run. If my shell was plain bash, I would ...
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
846 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
2answers
951 views

SSH on my local network - problem with login

I'm having problem with logging into my local-network-linux (server) ssh with Putty (and with Linux terminal, too) When my server shows me request to insert username, I insert "root" and I do press ...
1
vote
1answer
280 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
422 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
241 views

tar through ssh session [duplicate]

Possible Duplicate: What does “-” mean as an argument to a command? When I use this command: tar cf - /tmp | ssh test.com tar xf - What does the '-' mean? And is this the ...
1
vote
2answers
187 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
784 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 ...