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

learn more… | top users | synonyms

-2
votes
0answers
35 views

Problems launching a GUI setup program over an SSH tunnel

I have EMC Documentum Content Server on a SUSE 11 box. To access the machine and then run Content Server's GUI configuration program, I used to do the following steps: ssh -X -Y Server_Name xtunnel ...
2
votes
1answer
40 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
51 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
31 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
39 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
0answers
39 views

ssh system calls and path variables [on hold]

I am confused about the behavior of ssh system calls in my C program. I understand according to man pages that a remote command will not be given access to global path variables. I am trying to use ...
0
votes
1answer
27 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
104 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 ...
1
vote
2answers
24 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
17 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 ...
1
vote
2answers
19 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
47 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 ...
7
votes
1answer
254 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
31 views

read failure error while connecting to the server [on hold]

There was a problem last night when I tried to connect to a remote server from my personal computer having Linux. First, I received the following error: ssh_exchange_identification: read: Connection ...
0
votes
0answers
13 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
60 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
34 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
92 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 ...
19
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
46 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
37 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
41 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
104 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
47 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
38 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
29 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
48 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
42 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
33 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 ...
-3
votes
1answer
48 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 get my question of how many codes do i want to make and with that ...
-5
votes
2answers
64 views

open ssh server back

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
76 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
36 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
19 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
23 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
0answers
20 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
57 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
140 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
58 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 ...
1
vote
0answers
58 views

SSH: Permission denied, please try again

I need to connect to a server and don't know whats going on: me@pc:~$ ssh -v server OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /home/me/.ssh/config debug1: ...
2
votes
2answers
61 views

Passwordless login only works using directly invoked sshd on server

I've been through as many of the bugfixes as I can find for the classic ssh key issue : I've set up my public and private keys "correctly" but passwordless login still doesn't work. The details : ...
0
votes
1answer
19 views

oddjob_mkhomedir doesn't run when logging in via SSH with Kerberos

I currently have a server which has Kerberos/SSSD/Samba to authenticate to Windows 2012 AD. In /etc/pam.d/system-auth oddjob_mkhomedir is set as below: session optional ...
2
votes
1answer
35 views

ssh-copy-id: why is the end of my public key different on my local vs remote?

Usually in the past I've always manually copied over my SSH public key to the remotes where necessary. I'm on a Mac and I finally decided to start using ssh-copy-id to make my life simpler, so I just ...
1
vote
1answer
32 views

Restrict ssh access per user based on conditions

Is there a way to restrict a user to only use ssh to connect via SFTP, but disallow that same user to login to a secure shell terminal? I only want the user to have the ability to connect by an SFTP ...
2
votes
1answer
49 views

Jumping ssh hosts without netcat

I have access to an intermediate server to which I can connect with ssh. From there I can connect to other servers: A→B→C, where A is my laptop, B is an intermediate server accepting connections from ...
0
votes
2answers
36 views

Execute script after outbound ssh

I want to execute a script after outbound ssh. I have two server (A) and (B), and computer (C) (C) can connect to (A) by SSH but can't connect to (B) and (A) can connect to (B) by SSH But (C) can ...
24
votes
4answers
1k views

How do I remotely edit files via ssh?

I have to edit some files placed on some server I could reach via ssh. I would prefer to edit these files in customized vim on my workstation (I have not rights to change vim settings on remote ...
3
votes
1answer
106 views

Deny SSH for a particular user from external network

So I have a server on my local network running an OpenSSH server. The server is configured to allow SSH from external networks, which is intended. However, I want to create one specific user ...
1
vote
1answer
30 views

Simple Radius authentication

I'm looking into using Radius as an authentication server for a few Ubuntu servers when accessing through SSH. I have tried using libpam-radius-auth but it doesn't work quite as I need. My goal is to ...
0
votes
0answers
30 views

Backup server with tar, encrypt and directly transfer the result, AFTER BUFFERING IT

So I've been investigative how to make full backups with tar, and I found that tar is a good tool if the backup is to be made once, and if the server has enough disk space to handle the output file. ...