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

learn more… | top users | synonyms

0
votes
0answers
19 views

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

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 ...
1
vote
1answer
59 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
30 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 ...
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 ...
1
vote
0answers
32 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 ...
0
votes
1answer
21 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 ...
4
votes
1answer
16 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
38 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
votes
0answers
37 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
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 ...
0
votes
1answer
34 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 ...
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 ...
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 ...
0
votes
0answers
19 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 ...
2
votes
0answers
18 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 ...
2
votes
0answers
23 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 ...
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 ...
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
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 ...
1
vote
0answers
86 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
14 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 ...
2
votes
2answers
39 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
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 ...
0
votes
0answers
26 views

Error installing java on Virtual Machine

I am trying to deploy a server app (BaasBox) to Google app Engine BaasBox requires java 1.6 or higher to execute. when I check for java on the virtual machine using java -version, I get this: ...
2
votes
2answers
38 views

Simple notification on program completion

I'm running something while ssh'ed into a machine (through mosh). I would use sendmail to get a notification on termination of a program, but this machine cannot connect to the network for security ...
1
vote
1answer
22 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 ...
3
votes
1answer
53 views

Possible to pipe command using su via ssh

I'm trying to write a python script to remotely update the login passwords for a set of account I administer - I can already successfully use python to pipe remote commands via the stdin of an ssh ...
1
vote
1answer
17 views

dropbox process stops when I log out of ssh

I tried every solution from How to run Dropbox daemon in background? and nothing solves my problem: Basically, I already installed dropbox on my Ubuntu 12.04LTS headless server. I got init.d setup ...
0
votes
0answers
29 views

SSH connection breaks after executing commands (broken pipe)

I am connecting to a remote machine on WAN and LAN networks using SSH. After logging in with username & password I type some commands in the shell. After the 2nd or 3rd command PuTTY throws the ...
1
vote
0answers
37 views

How to capture tail -f output from remote host indefinitely

I am trying to monitor a remote, embedded host that is writing output to a file: /var/log/myapp.log This host may lose power for hours. The app may be killed and restarted. On my local machine, I ...
0
votes
0answers
47 views

Difference between ssh manually and in a script

I am using AIX. I am trying to open pvcs Serena application which is present in a Linux server. If I manually ssh to Linux server, set DISPLAY variable and invoke pvcs it is working properly. However ...
3
votes
2answers
85 views

SSH Connection Timed Out

Hi I have looked all over the internet but could not find a solution. I am not saying that I didn't find anything, I am saying that I tried so many things and nothing worked. So hopefully someone can ...
0
votes
1answer
84 views

Why can't I use ssh?

The problem seems to occur straight from the time I have installed Ubuntu 14.04 LTS. I first realized this problem when I was trying to connect with my hosting at HostGator. I neglected and thought ...
0
votes
0answers
20 views

Browser is ok but can't direct internet through a shadowsocks server

Ok it seems an easy thing but I just couldn't make it work after lots and lots of searching. I have Ubuntu 14.04. This is config.json file including configurations of my friend's server running ...
0
votes
0answers
29 views

cannot ssh to Fedora 21VM from local-desktop

I verified that ssh is running on VM, however port 22 is not responding. [root@localhost log]# ps ax | grep sshd 5343 pts/0 S+ 0:00 grep --color=auto sshd [root@localhost log]# systemctl ...
3
votes
1answer
60 views

Where are SSH init scripts located?

I'm following the best security practices of SSH, via this link and the link states: We should remove the unused keys and only generate a large RSA key and an Ed25519 key. Your init scripts may ...
4
votes
1answer
63 views

After sending shutdown command, ssh session doesn't terminate

Whenever I send the command to turn off or restart my Debian servers, my shell is left hanging and unresponsive (can't type any commands). Performing the same action in Ubuntu results in the ...
0
votes
1answer
40 views

Cant use scp with wdmycloud

I can successfully log in to mycloud as root or another user I added. I need to use the scp command to send an image to my folder. It keeps asking for the password and saying its wrong when I know ...
-1
votes
0answers
33 views

Can't secure copy to wdmycloud with ssh [duplicate]

I can successfully log in to mycloud as root or another user I added. I need to use the scp command to send an image to my share. It keeps asking for the password and saying its wrong when I know it's ...
4
votes
2answers
76 views

Is it possible to escape quotes within escape quotes within escape quotes within escape quotes?

I'm guessing someone will tell me I'm doing something wrong and dumb and noobish, but I'm trying to script something in the most straightforward method possible and use sudo commands to do something ...
7
votes
1answer
125 views

Blocking SSH Brute Force attacks on IPv6

I recently had to work with some servers that have an IPv6 connection and I was surprised to find out that fail2ban does not have IPv6 support, neither does denyhosts. Searching on google I found that ...
2
votes
1answer
51 views

SSH command not exiting properly [closed]

I wrote a script that SSH to remote servers in loop and run a command, it gets hung after running on last server.Here is my loop script - cat server | while read serName do ...
0
votes
2answers
27 views

“Replace” default shell (bash) with tmux

Background: An co-worker at my company uses tmux all the time, in our spare-time he teached me mastering tmux and vim and I really fall in love with the power of this combination. Currently, I am ...
5
votes
3answers
34 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 ...
0
votes
3answers
64 views

Port is open but I can't ssh to it

My company PC is behind the firewall, I want to connect to my remote server. The port is open however I can not connect to it, does anyone know the root cause? From my company PC connect to my ...
2
votes
1answer
40 views

rsync over SSH sometimes very slow--other times maxes out bandwidth

I have a bash script set up on computer A (Mac OS X) set to run every five minutes via a cronjob. This script checks for new files on remote computer B (Gentoo Linux) then rsyncs any new files to ...
1
vote
0answers
15 views

How do I use the “screen” command if I don't know what the ps or tty the program came from?

I am making a python program that launches on bootup, and I would like it so that I can interact with that program via the "screen" command, so that if I need to talk to the progarm via a different ...
0
votes
1answer
56 views

ssh login with a tunnel through intermediate server in a single command?

Is there a way in a single SSH command to login via SSH to a remote server passing through an intermediate server? In essence, I need to create a tunnel to my "bridge server" and via the tunnel to ...
1
vote
1answer
22 views

Estimating time to send a single file with fixed network throughput?

Let's say I have several files with different sizes (10KB, 100KB, 1MB, 10MB, 100MB). Starting individual transfer of those files over 2MB per second network will return different final throughput ...