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

learn more… | top users | synonyms

3
votes
2answers
105 views

-X flag (X11 Forwarding) does not appear to work in Windows

I am using Open SSH (OpenSSH_6.6.1p1, OpenSSL 1.0.1i 6 Aug 2014) in Windows 8.1. X11 Forwarding does not appear to be working. The DISPLAY environment variable does not appear to be set. For ...
0
votes
1answer
124 views

SSH Server Not Responding to Connection Request

I'm attempting to set up an SSH server on my local machine using OpenSSH. When I try to SSH from a remote host into my local SSH server, the SSH server doesn't respond and the request times out. I'm ...
1
vote
2answers
77 views

iptables configuration - ssh connection only from a remote network

I'm trying to configure Iptables of a server in order to permit SSH incoming connections only from a certain network. by the way this is the rule chain : # Drop anything we aren't explicitly ...
0
votes
0answers
51 views

scp from a remote machine

I am having trouble moving files off a remote machine that we need to take down. I can SSH into the remote machine just fine but, when I try to scp the files out I get an connection timed out on port ...
1
vote
0answers
29 views

OpenSSH Server as Tor Hidden Service

What exactly is considered best practice when setting up an open SSH server as a Tor hidden service? I do it this way, but I feel like there's a better way of doing this: I just set SSH up as a ...
1
vote
1answer
82 views

Cannot connect to ssh

Hello I type the following command: $ ssh -vv root@192.168.11.9 I enter the password correct, but I am getting the following error: debug2: we sent a password packet, wait for reply debug1: ...
1
vote
1answer
37 views

What ports will an ssh daemon use outbound?

I am making a bastion ssh server. When I use the following rules in its ip tables, I am able to connect to the server just fine: Inbound Rules Allow traffic on port 22 from my client's IP Block all ...
0
votes
3answers
139 views

Running remote script via ssh command

I have a script on remote Debian server machine and I want to run a command by invoking: ssh server "find.sh" My find.sh script is in in: /home/user/bin First of all, I ran ssh server "echo ...
0
votes
1answer
54 views

How to parse through a .dat file and get patterns such as timestamps and file size of a .jar file declared inside

I want to compare the size and timestamp of the following jar files in separate directories. First data is fetched by: grep -Eo ...
0
votes
1answer
128 views

“no matching cipher found” error in `rsync`

I am trying to copy a directory from one system to another with rsync; but it erred. Can you please advise me on what to check? Command: [M root@aMachine ~]# rsync -e "ssh -c blowfish" -v -a ...
2
votes
3answers
418 views

Why can't I login on the remote computer without a password after using SSH-KEYGEN command?

I have two computers. From the first I created the account admin1 with password admin1. Then I logged in as a root user and used the ssh-keygen -t rsa command. I did not give a password and hit Enter ...
2
votes
2answers
109 views

chroot ssh users to home directory

How can one chroot ssh users to their home directories? This is what i have set in my sshd_config file: ChrootDirectory %h Subsystem sftp /usr/libexec/openssh/sftp-server ssh version is ...
1
vote
0answers
69 views

Easy way to compare BIOS information between two machines?

I have two machines - machineA and machineB running Ubuntu 12.04 Is there any easy way I can compare BIOS settings between those two machine and see the difference instead of doing it manually using ...
1
vote
0answers
33 views

Scale ssh forwarded graphical interface

I am running gnome on top of archlinux on a samsung ultrabook which display is hidpi. Gnome supports hidpi quite well actually, and apart some applications that ignore the system font settings or the ...
2
votes
1answer
78 views

chroot ssh users

I am using CentOS 7. I need to give shell access to ssh users but restrict them in a jail. I have used jailkit to set up the jail. I have copied all necessary libraries, binaries that are needed for ...
2
votes
1answer
80 views

How to safely transmit a password over SSH for a remote command to use

On the local server, I have a program that stores the password in the predefined environment variable (SPECIAL_PASSWORD). On the remote server I have a program that reads and uses a password from a ...
0
votes
2answers
54 views

Linux ssh log audit

I want to monitor ssh logins into a Linux box: who, from where (IP address) and when. How to open related logs? A simple document is appreciated.
1
vote
1answer
58 views

How can I make the unix `pass` program play nice with `ssh` inside the Linux Virtual Terminal?

I am trying to log into an ssh server by pulling the password directly out of the pass program without any GUI interaction. The normal workflow in the GUI (Gnome) is to do the following. Pull the ...
0
votes
1answer
54 views

Unable to login with SSH-RSA key

This post is following this question : Authentication refused: bad ownership or modes for file /var/git/.ssh/authorized_keys . The issue as exposed there is solved (about files modes of the ...
2
votes
3answers
524 views

Authentication refused: bad ownership or modes for file /var/git/.ssh/authorized_keys [duplicate]

EDIT The issue as exposed here is solved (about files modes of the .ssh folder. But an other issue persists so I create a new question : > Unable to login with SSH-RSA key I can no longer ...
3
votes
2answers
118 views

sshfs over mosh tunnel

I am using sshfs over ssh tunnel. The reason for this is because I do not have direct access to machine from which I want to mount file system. This command establishes me tunnel: ssh -o ...
0
votes
1answer
64 views

Disable PAM login but keeping landscape-sysinfo y motd

Running Ubuntu Server, I have no need for PAM login, and thus disabled this service in the sshd_config file. However, oddly, there is some login info that is only displayed if you enable PAM logins ...
2
votes
2answers
47 views

How to make ssh connection to LXC container by its name?

Is it possible to make ssh connection to lxc container by its name? I have been using IP addresses but then I though how easy it would be to use ssh test01 (here test01 being container name) instead ...
1
vote
2answers
87 views

tunnel rsync:// protocol over ssh

on my LAN (debian server, windows client) I use rsync:// protocol with this code cwRsync\rsync.exe -avLP --force --append-verify rsync://rsync-usb@server/rsync-usb/* usb/ I have read, that rsync in ...
8
votes
1answer
479 views

How to execute an arbitrary simple command over ssh without knowing the login shell of the remote user?

ssh has an annoying feature in that when you run: ssh user@host cmd and "here's" "one arg" Instead of running that cmd with its arguments on host, it concatenates that cmd and arguments with spaces ...
0
votes
0answers
28 views

Trying to set up game server(freebsd jail) inside Nas4free computer

So I've spent the past 2-3 hours trying to figure out how to set up a server for one of my games on my nas box. I've looked into doing a jail and installing freebsd inside it. That didn't workout and ...
0
votes
1answer
131 views

How to execute a remote command to an existing ssh session

I'm trying to get basic informations on my local machine from ssh connections. The purpose here is to get the current user, hostname, current working directory in my tmux status bar. I've enabled ...
0
votes
1answer
131 views

is iptables broken on my raspberry-pi? how to fix?

I am getting some person(s) trying to brute force my ssh, from multiple ip addresses (small sample) : May 22 19:50:02 rpi sshd[1272]: pam_unix(sshd:auth): authentication failure; logname= uid=0 ...
4
votes
3answers
151 views

How to browse a website as if I am in USA? [closed]

I am in Taiwan right now and whenever I go to a website that I could browse in USA, it directly transfers me to the Asia site. There is no way to browse the USA version of the site, probably because ...
21
votes
5answers
1k views

How can I propagate my SSH pub key to a list of servers without having to type my password in over and over?

I was recently given username/password access to a list of servers and want to propagate my SSH public key to these servers, so that I can login more easily. So that it's clear: There is not any ...
0
votes
1answer
103 views

SSH: remote variable

I want to run a complex script via ssh #!/bin/sh ARRAY1=( server1s server123 server12 server14 server13 ) for i in ${ARRAY1[@]};do ssh $i " case \$HOSTNAME in server1.domain.com) echo try1 ...
0
votes
1answer
53 views

help with remote file find/scp

I have a set of files on a remote sftp which I need to download to a server every day. sftp uses ssh keys to authenticate, so I created a ssh key and added to the remote server authorized folder. I'm ...
0
votes
1answer
99 views

Windows to Linux (rsync and ssh) [closed]

I'm trying to backup the folders in Windows Pictures to a remote Linux directory. This is what I have: rsync -av ssh /cygdrive/c/users/Owner/Pictures/ blah@192.168.1.10:/var/files/ImageSync/ I got ...
4
votes
3answers
171 views

Copy from remote server which doesn't have rsync

I need to recursively copy a folder from a Ubuntu remote server where I have ssh access. I don't want to follow symbolic links, nor to copy permissions/owner/group, because my client system (Ubuntu ...
1
vote
1answer
62 views

How SSH Tunneling is working

can someone explain how the following ssh tunneling is working ? ssh root@localhost -P 2222 -pw 1234 L 3300:remote_WIN_machine1:3389 this ssh command is running from Linux machine while the remote ...
0
votes
1answer
44 views

need to get the command information over ssh and the input from file

I am writing a script to get the command information of the remote machine usinf while and for loop. PFB the script. But the script ends by giving the single command information only. I have multiple ...
1
vote
0answers
140 views

Error running startx on CentOS via SSH

Whenever I attempt to run startx on a system I have SSHed into, I get the following output: xauth: creating new authority file /root/.serverauth.6604 X.Org X Server 1.15.0 Release Date: ...
1
vote
1answer
130 views

Fail2ban is not blocking IPs trying to access my server via ssh

I installed fail2ban with the default settings because there's a bunch of bots trying to log in as root to my server. I installed it but nothing has changed, I checked fail2ban jail IP list and ...
0
votes
2answers
48 views

Setting Up SSH. Just need some understanding

My goal is to build a LAMP server on my arch linux laptop. The main reason is for a web server. The other reason is to learn about how all this administration stuff works. My setup is a laptop with ...
1
vote
1answer
38 views

Tunnelling through multiple machines on Red Hat with varying users and keys

I'm trying to SSH tunnel hop to a Tomcat7 server where JMX was configured on port 9090. Essentially: localhost > hostB > hostC. In a terminal, from localhost to hostB: ssh -L ...
-4
votes
1answer
80 views

Help to run a script command from one server on another

I have a go daddy account and also a vps in germany. In my vps, I run a code script (we will call it codegen). When I run ./codegen, I am asked how many codes I want to make and with that answer on ...
-9
votes
2answers
83 views

open ssh server back [closed]

After I type # shutdown -h now from terminal, I can't access to the ssh remote server. (ssh root@10.101.6.240) How should I open back the ssh server?
3
votes
2answers
128 views

shell scripting remote commands through ssh

I'm trying to create a shell script which will execute some commands which I require frequently. I made the ssh login to skip the password prompt using a public/private key pair. and after some ...
3
votes
1answer
53 views

ssh message after login but before password

Is it possible to make a message appear for each user after he entered his login but before he needs to enter his password? I looked at motd and issue files, but I could not set it up, how I want. ...
1
vote
1answer
50 views

Linux LiveCD Server with FTP & SSH Services

Could anyone please suggest me a LiveCD (Linux Based) with SSH & FTP Services. Basically I don't want to install anything on my laptop so I just want to boot LiveCD with FTP/SSH services so I can ...
1
vote
1answer
100 views

Open Java programs of a linux machine on Windows with SSH?

I usually use laptop (which has Windows) to ssh to my Linux server and run stuff on it (e.g. Intellij, MATLAB). I wonder if there anyway to open Java programs (again, like Intellij) of a remote ...
1
vote
1answer
58 views

Lsyncd not working on Mac 10.9

I'm attempting to use lsyncd to automatically move files to my local development server. My host is OSX 10.9. SSH on the server works. I can connect using ssh from the host. I am using an SSH key to ...
1
vote
2answers
164 views

use SFTP in shell script

I have written a shell script to get the files from another UNIX server. But files are not being copied. Could someone help me what I am doing wrong. sftp username@server:$path get ubpbilp* ./ mget ...
0
votes
3answers
178 views

Can a command be executed without a shell?

I am developing a binary executable program command to execute programs and return the output into a text field. The parameters to the command involve the command itself as it would be typed on the ...
0
votes
2answers
78 views

Can not execute command with root in a remote Linux host

I try to migrate shell code to Python fabric code. The issue I meets is that Python can not execute command with root in a remote Linux host. Could anyone meet this issue and figure it out? I am very ...