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

learn more… | top users | synonyms

1
vote
3answers
3k views

How to use `~/.ssh/config` setting for each server by `rsync`

I'm now using rsync with -e 'ssh -p 10022' option to specify the port. I have already ssh setting in ~/.ssh/config. Host myvps HostName example.com User ironsand Port 10022 Can I use this ...
6
votes
3answers
2k views

Enabling system management privileges for non-local users - How the heck does `polkit` work, anyways?

I am managing a CentOS 6.2 server remotely using X over SSH (actually NX, but that's just a proxy). The Everything is working correctly, except when I try to do tasks that would normally require ...
0
votes
1answer
10 views

OpenWrt bricked router is not connected via USB to serial cable

I am a newbie in OpenWrt development. I have a problem in my router when i try to upgrade my router (TP-Link TL-WDR-3600) to openwrt firmware via web ui. Now my router is bricked and i can't ...
2
votes
0answers
21 views

scp does not honor .ssh/config

Used for a few years arcfour as default cipher for SSH2 connection in my ~/.ssh/config file host namaka hostname localhost port 2022 ciphers arcfour IdentityFile ~/.ssh/virtualbox ...
1
vote
2answers
25 views

Check services running on the server and restart them if they have stopped?

I am trying to write a python script which shows me the services which are running on my server. The thing is that mongodb keeps going down on the server and each time it happens I have to manually ...
2
votes
2answers
40 views

Can connecting to a SSH tunnel result in a vulnerability?

it's probably a noob question, but I haven't found a real answer yet. I bought a proxy service. In order to setup my browser I have to establish a SSH tunnel to their server. Since I do not want to ...
10
votes
3answers
13k views

Why does my X11 forwarding attempt fail with “connect /tmp/.X11-unix/X0: No such file or directory”?

On my local machine, I run: ssh -X me@remotemachine.com (For completeness, I have also tested all of the following using -Y with identical results). As expected, this accesses remotemachine.com ...
0
votes
0answers
18 views

Vim pausing randomly for a minute or so at a time

I'm running Linux Mint Maya 13.2 on a laptop from a USB stick, and SSHing onto that install from my own work computer. When i'm editing a file with Vim, i keep getting a pause of about a minute where ...
5
votes
2answers
10k views

Cannot start xterm over ssh after several successes

I am running some MATLAB scripts on the command-line of a remote computer using ssh. These scripts launch 5 xterms that are forwarded to me via ssh (using the -X option). At the moment I am debugging ...
1
vote
1answer
21 views

If I use an SSH tunnel to forward a remote port to a local one, and my IP address changes, will that tunnel still work?

Simple - trying to use my personal computer as a server, by forwarding a public static IP address's port to mine, but I'm worried about Comcast pulling out the rug from underneath my feet and changing ...
1
vote
3answers
349 views

Upgrade MySQL 5.0.88 to 5.1.69

I am upgrading my MySQL installation on a Fedora 10 (and 14) box (in test first.) I have made a system image (it is a VM) and have downloaded MySQL Server Community 5.1.69-1 from the MySQL site. Once ...
12
votes
5answers
4k views

Get ssh to forward signals

I want to be able to send signals (SIGINT is the most important) through ssh. This command: ssh server "sleep 1000;echo f" > foo will start sleep on server and after 1000 seconds it will put ...
3
votes
0answers
40 views

Enable Massive Concurrent SSH to a single server

My goal is to allow 10000 concurrent sshs running on a single server. For simplicity I am ssh-ing to localhost: for i in `seq 1 10000`; do (ssh localhost "echo hi" >info 2>log; sleep 100s) ...
0
votes
0answers
32 views

Users can only connect to certain port (game server) when they accessed the server through ssh? [on hold]

I have the following setup: Debian 7 Wheezy (64bits) with Plesk 12 and 5 ip addresses. 1 main ip address, 4 extra ones. I created a user in plesk, allowed ssh for that user and assigned one of the 4 ...
5
votes
1answer
849 views

How do I prevent ssh remote login from breaking dbus?

I'm running openSUSE 11.3 on my workstation at work under KDE, I don't have root access to it. The default shell has been set to tcsh. When I am logged in at my workstation and log in remotely from my ...
1
vote
1answer
64 views

Issue with ':' character in Bash script over SSH

I am currently writing a script that will perform backups on a set of databases, comress them, encrypt them, transfer them to a separate storage machine, and verify that the file made it successfully. ...
1
vote
1answer
31 views

How to programatically control X11 forwarded apps?

I'd like to set-up X11 Forwarding to run remote X applications on the server and X11 client can handle the UX interaction. However I would like to configure the X11 client or fake it to actual do the ...
4
votes
1answer
678 views

How do I stop ssh-agent trying all keys with agent forwarding?

Often I'll connect via SSH to VM instances to deploy code from private Bitbucket repositories, cloning repositories via git over SSH. Today I was getting the error: conq: repository access denied. ...
1
vote
1answer
819 views

DROP all for port 22 if not geoip set of US for iptables and xtables

I want to simply block all ssh access from anywhere but with in the US. This is my whole iptables, and I have followed ...
1
vote
0answers
11 views

Chroot Users to /opt and subdirectories [duplicate]

I'll make this short and hopefully I make sense. Im trying to give a user ssh access, but, he/she must only be able to access /opt and the few subdirectories that live under it. However, here's ...
13
votes
3answers
2k views

scp between two servers not in the same network

There are two server that I can access with 2 different VPN connections. I have managed to have both VPN working on the same time on my machine (a bit of routing rules). I want to do a scp ...
1
vote
1answer
600 views

iptables allow only ssh and vpn traffic

I have dedicated server with ubuntu 14.10 installed. The server should connect to an openvpn server and the traffic should only go through the vpn, except for SSH traffic. My idea is to realize it ...
1
vote
0answers
36 views

How to use tty allocation to run GPG through SSH?

I am trying to encrypt and sign a local file using a distant GPG installation via SSH: pv file | ssh -tt [ssh server] gpg -se -r [receipt key] > file.gpg Using the double t option removes the ...
5
votes
1answer
21 views

How do I configure SSH so that OTP can be used with ssh-copy-id and then only keypair authorization is accepted?

As you may be able to tell from the title of this post, part of my confusion may stem from an inability to express the question, so please bear with me. Here is what I am trying to accomplish: ...
0
votes
1answer
39 views

How do I run X11 applications over ssh from a Gentoo server that does not have a GUI installed (with minimal added software)?

Currently I am renting a VPS from VPS.net running Gentoo. How can I run "X11" applications remotely without installing a full GUI on the VPS. What is the minimum pieces of "X11" I would have to ...
1
vote
1answer
22 views

running screen in a shell can't find sessions but running screen during ssh login can

I am using the RemoteLoginAutoScreen script to start a screen session when I ssh into a host. Differences from linked script: I am using zsh and the RemoteLoginAutoScreen uses bash The problem that ...
0
votes
1answer
569 views

ssh connection closed, after prompting password [closed]

I'm using a debian based distro for Raspberry Pi (Raspbian). Sometimes I cannot ssh to my Pi. A reboot solve the issue, but I don't always have physical access to the Pi. here's what happens: ...
2
votes
2answers
53 views

Git config forwarding

I don't know if this even possible or not. I was wondering if there is any way like SSH Agent forwarding by which we can forward our .gitconfig on the remote server, and git automatically picks the ...
-1
votes
0answers
38 views

How to configure ssh settings? [closed]

I have an access to an aws server deployed through Rightscale. Rightscale generates a .jnlp file to ssh into the server from local machine which actually runs on java code for doing it. I want to do ...
0
votes
1answer
667 views

Run a command under sudo over SSH

I am accessing remote machine in Linux using Bash scripting.My code is as follows #!/bin/bash ssh -i manu_bp.pem ubuntu@54.68.67.68 <<EOF sudo -s cat ...
26
votes
5answers
10k views

How can I detect if the shell is controlled from SSH?

I want to detect from a shell script (more specifically .zshrc) if it is controlled through SSH. I tried the HOST variable but it's always the name of the computer which is running the shell. Can I ...
0
votes
1answer
17 views

X11Fowarding not working on Arch Linux ARM

I am trying to setup X11Forwarding between my Arch Linux ARM server and my OSX computer. I am accessing the server locally (always). /etc/ssh/ssh_config: X11Forwarding yes AddressFamily any ...
2
votes
0answers
26 views

Flash OpenWrt Routers from Telnet

I have two routers. One has Chaos Calmer and the other has Attitude Adjustment. When I turn them on and check arp, nothing comes up. When I check route, the hardware address says (incomplete) but the ...
2
votes
1answer
766 views

SSH Agent Forwarding on server

I'm struggling with the concept of SSH Agent Forwarding. This is what I've done so far: Create default identity local (ssh-keygen) Install the public key on bitbucket Now I want to connect to a ...
0
votes
1answer
35 views

ssh over unix pipe or pty device [closed]

Ok, I don't even know how to put this into words. I have a /dev/myDevice which automatically connects to some ssh server when opened. How do I connect to it with ssh? Is this even sane? If it's insane ...
1
vote
1answer
27 views

Pinentry fails with gpg-agent and SSH

I'm running Fedora 22. I'm trying to setup GnuPG to have my SSH connections authenticated using my PGP authentication subkey that is located on my Yubikey Neo. I have a systemd unit starting the ...
2
votes
2answers
36 views

How can I maintain open ssh connection and use it from shell scripts?

Currently i invoke the following: $ ssh me@host.com my_cmd This is slow and not easy to automate safely. I would like to establish ssh connection once and have some script that will forward my ...
5
votes
3answers
35 views

How to make SSH's `ControlPath` distinguish between IPv4 and IPv6?

I'm using ControlMaster auto ControlPath ~/.ssh/tmp/%l_%r@%h:%p in my ~/.ssh/config to open multiple sessions using the same connection when accessing a host via SSH. That works fine for ...
1
vote
0answers
87 views

Give a user permission to one folder

I have made so my group "sftponly" can access the users home folder. But right now the user in the group don't have permission to other folders, but they have permission to see them. How can I do so ...
0
votes
0answers
20 views

Why won't MOTD display output from a Python script it calls outside of /etc/update-motd.d/ unless it's in this directory?

The Situation We're running a headless Ubuntu 14.10 Server to fulfill various needs and tests. I was experimenting with changing the MOTD for SSH sessions via /etc/update-motd.d/ so as to display ...
0
votes
1answer
49 views

Why the number is rounded over ssh? [duplicate]

localhost:~ $ df -k / | awk '{print $3/1024/1024/1024}' 0 0.00618061 localhost:~ $ ssh localhost "df -k / | awk '{print $3/1024/1024/1024}'" 01 01
2
votes
0answers
24 views

Rlogin prompting for remote password (Kali / Metasploitable)

I am following a tutorial that can be found here. http://www.kalitutorials.net/2014/05/metasploitable-2-vulnerability.html Specifically the "Remote access vulnerability - Rlogin" section. When I ...
1
vote
1answer
13 views

Working with screen via another screen session

I connect to Host1 using ssh and start a screen session. From one of those windows I ssh into the Host2, which launches a screen session on login. How can I create new/switch between screen windows ...
0
votes
0answers
34 views

SSH multi hop with certificate

I need make a SSH multi hop connection from A --> B --> C B is a bastion host and C is the target. In my client (A) we are the two SSH certificate, for B and for C, how to make a connection to C ...
2
votes
1answer
1k views

Chroot gone wrong, can't ssh with user

Distribution: Scientific Linux 6.5 (Carbon), not exactly your typical brand of linux. Tried to chroot a user using these instructions for SSH and quite obviously failed, and now I can't even log in ...
3
votes
1answer
26 views

Disabling ssh password authentication does not work on my debian VPS

I have a Debian 7 VPS setup. I just enabled SSH Key authentication and disabled password authentication but the disabling did not work. When I attempt to SSH into my VPS, it prompts me for my SSH Key ...
6
votes
0answers
2k views

git-upload-pack hangs indefinitely

I have the following call structure: Jenkins runs fab -Huser@host set_repository_commit_hash:123abc. set_repository_commit_hash runs git fetch with pty = False. The child process ssh git@github.com ...
2
votes
2answers
40 views

transfer many similar files over ssh

A service on a linux server is only able to do full backups, where each backup is a .tar archive (no compression). Many contents of the archive do not change from day to day. Each .tar file size is ...
0
votes
0answers
15 views

OpenWrt with Nodogsplash

I have a web application in MVC4 for Hot Spot Management system. I using it with OpenWrt and Nodogsplash, Now i need to authenticate the users in to external website. Is there any way to allow to ...
0
votes
0answers
10 views

ssh over https, python server [migrated]

My ssh client connects successfully to sshd on my server at home through https port with the help of sshttpd on someport which multiplexes traffic to either httpd on port 443 or sshd on port 22 ...