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

learn more… | top users | synonyms

1
vote
1answer
2k views

What strings should I look for in /var/log/auth.log?

I wrote a bash command to scan /var/log/auth.log for messages occurring on the current day indicating unauthorised access. Currently it just fetches messages matching BREAK-IN and unauthorized. What ...
1
vote
1answer
190 views

vnc over ssh port assignment

At the office I have on the servers a vnc server running. In Windows I use putty to connect to the server, I log in and then use realvnc to see the desktop. But I cannot get this to work on Linux. I ...
1
vote
1answer
27 views

cannot get screen command to execute code containing DISPLAY=:0

I am trying to ssh into a remote machine and run a shell script, which opens a GUI. I want the GUI to open on the remote machine and remain open (so I am using DISPLAY=:0 nohup). I tried: ssh -t ...
1
vote
2answers
39 views

SSH to a remote Machine using a different Local ID

I need help related to SSH. Let me explain a scenario. I am logged in as "user1". Host A: user1 user2 Host B: remoteuser. There is a trust relationship setup between user2 on Host A and ...
1
vote
1answer
29 views

Setting up port forwarding on router for reverse SSH tunnel

My home PC is behind NAT but my router has static ip address. My work PC uses 3G stick for Internet (So I guess it is like being behind NAT). I would like to create a reverse SSH-tunnel to connect to ...
1
vote
1answer
103 views

Automatically enter SSH password without using SSH Key, 'expect', 'sshpass' or Python

I have small device that starts up a tiny VM of PowerPC linux that I need to SSH into from a script on a tiny version of Yocto linux. The PowerPC VM SSH passwords stay the same, but it resets most of ...
1
vote
1answer
25 views

Allow the restricted rsync (rrsync) script for arbitrary directories with authorized_keys

Automating Backups I would like to implement a backup solution with copies data from various directories from a Web server (WebServer) to a local backup server (BackupServer). The backup should run ...
1
vote
1answer
21 views

How to recover a process GUI after broken pipe

I started a process with GUI from the command line in a remote computer using ssh -X. Knowing it would take a long time to run it, I left it in the background and disowned. As I feared, I had ...
1
vote
1answer
41 views

SSH publickey permission denied (Google Cloud Platform)

We run a small handful of Debian servers on Google Cloud Platform. New servers we setup, we're able to add SSH keys at the point of creation and access the machines via SSH without a problem. Older ...
1
vote
1answer
37 views

Specifying SSH KexAlgorithms works at CLI but not via ssh_config [duplicate]

By default, my SSH client disallows the use of the diffie-hellman-group-exchange-sha256 key exchange algorithm. However, I need to access a server on 10.0.0.1 that requires the use of that algorithm. ...
1
vote
1answer
44 views

Start a python script in `screen` on boot?

I want to be able to start a python script when I boot, but I want to be able to see lines which have been printed during the program. I have been able to put the line "sudo python /path/to/file.py" ...
1
vote
1answer
49 views

How to show and operate a remote Linux desktop when SSH or any other remote service is unavailable? [closed]

The situation is as follows. On Monday, I need to showcase a program that needs the set-up development environment and hardware on my home system, at the university. The ISP are misbehaving and won't ...
1
vote
1answer
43 views

Adding user to ownership in addition to another user [closed]

I had some problems with permissions, the programmers of my website wanted me to add the admin user to the apache group and then set some permissions. My knowledge of Linux is quite limited, so I ...
1
vote
1answer
46 views

Mass deployment of package to multiple Linux servers across different continents

I'm new to here and want to raise an interesting question about mass remote configuration of Linux servers. Imagine you get a list of IP addresses for 100 servers with a fresh install of Ubuntu, ...
1
vote
1answer
39 views

Revert ssh from publickey to password

I operated a debian server for a while while just by permitting a publickey-based access. Unfortunately I lost the private key (reinstall without backup), and now I am not able to log into the system ...
1
vote
1answer
32 views

unmanaged vps centos6.4 need to open port 20/21

I brought an unmanaged vps which is running Centos 6.4 and the only port which was open was 22 and I need help opening port 20 and 21 so I can ftp, but every time I try to it wont save and let me ...
1
vote
1answer
28 views

Block regular users from changing their passwords: only root should be able to [closed]

For security reasons, I want to make it so that only root can change user's passwords This can be achieved if I set /usr/bin/passwd to 700. Now, if password aging is enabled or first login is enabled, ...
1
vote
2answers
99 views

ssh login works but sftp does not

I can use ssh to login-in Centos by Xshell, but I can not download files from Centos by FileZilla. I have tried to login-in in different network or computer, the result is still the same. However, ...
1
vote
1answer
41 views

SSH tunnels force new tunnel and kill old session

This is the situation: I have a Linux server running Ubuntu server 14.04 to which multiple computers connect and authenticate with SSH and try to open a reverse tunnel. These computers usually do not ...
1
vote
1answer
47 views

New terminal working directory

When I login (using ssh) to other host and open a new tab (pressing CTRL + Shift + T). It sets current working directory to a particular directory in my home independent from current working directory ...
1
vote
1answer
71 views

How to login to an ssh server and capture prompts programmatically?

I'm attempting to write a script that will login to a remote server via ssh, without popping up a password prompt to the user (the remote server is not under my control, and they won't allow me to use ...
1
vote
1answer
50 views

How to write a file a file via ssh

I want to write a file in the Machine B under /home/test whose permissions are root:root and rwxr-xr-x. I have an account on the Machine B, named testUser. When logged to the Machine B with ...
1
vote
2answers
55 views

Forward ssh for git user to git server

It is surprisingly difficult to find information on this simple problem. Like many people we run a gitlabs/gogs server on a remote instance. Currently it listens on port 10022. We also run ssh on ...
1
vote
2answers
62 views

large mounts of emails being sent from server unable to identify [closed]

I have a bit of a dilemma, I'm not sure how to solve. I have found coming from a folder on my server massive amounts of emails, but when I look in the folder, no single php file is sending that amount ...
1
vote
1answer
33 views

Push/Pull files among Unix machines with private key on Windows

I am operating across three systems: A remote Unix machine (let's call it Unix1), which stores some files A local Windows machine (let's call it win1), which stores the private key to Unix1 A ...
1
vote
1answer
80 views

Make sshd override login shell of a group of users

My users are shared across a number of machines via LDAP. For one of those machines (let's call it 'fileserf'), I would like to restrict some users in what they can do (actually: prevent them from ...
1
vote
1answer
319 views

Clean install of Debian 8.3 missing PermitRootLogin in ssh_config (can't ssh root login)

I just installed a new vm of Debian from a netinst ISO, everything went fine. But when I went into /etc/ssh/ssh_config to change the PermitRootLogin setting to yes, it wasn't there, so I added it, ...
1
vote
1answer
165 views

ssh algorithm negotiation failed

Problem Ok, the problem is that I am using Pycharm on El Capitan. I am trying to connect to a server that has strict login Kexalgorithms using the newer Key Exchange Algorithms than Pycharm seems to ...
1
vote
1answer
40 views

Confirming that a reverse ssh tunnel has been established

I have a reverse ssh tunnel established between a client and a server computer. The client connects on the server on port 22, and creates a reverse ssh tunnel on port 4030. After the client computer ...
1
vote
1answer
131 views

How do I get a service on a remote CentOS 7 server to persist after I log out?

I am experimenting with running Spring Boot apps on a remote CentOS 7 web server which has been successfully serving up apps on Apache and a stand-alone tomcat instance since day one. However, when I ...
1
vote
1answer
79 views

Managing iptables for specific ips and ports

I disable firewall like so: #!/bin/bash iptables -F iptables -X iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT Update I also enable my firewall: #!/bin/bash ...
1
vote
1answer
191 views

ssh on unix socket

I have some old unix running as vm on VirtualBox server those vm had the serial ports simulated by unix socket for example: an old AT&T 2.1 SVr4 has socket on /tmp/att1 to connect i did minicom ...
1
vote
1answer
34 views

How to export a bks keystore on debain 7.9 wheezy

I need to generate a keystore.bks file to use for android development. I cannot figure out how to export a bks keystore without using a GUI tool. I have server space on Google Compute Engine which I ...
1
vote
1answer
204 views

Executing a command in remote machine and redirecting output to a local file

I am uploading a file via sftp and just performing the safety test if the file is completely uploaded to the remote server. I am taking md5 hash of both(file in local and file in remote server) and ...
1
vote
1answer
96 views

How to use SSH tunnel to connect to remote MySQL server?

I am trying to connect to remote MySQL server, which runs on CentOS 6.6 cPanel server. I am creating tunnel this way: ssh -L 3306:xxx.xxx.xxx.xxx:3306 user@xxx.xxx.xxx.xxx -p PPPPP Where ...
1
vote
3answers
27 views

Get current execution of command out in ssh?

There is a thing that I need help with. I am running a simulation command in a servr using ssh, from my terminal. The simulation is running for 10+ hours. I am expecting output after 15+ hours. ...
1
vote
2answers
86 views

How to properly use ssh ControlMaster [duplicate]

I have a script which runs several commands remotely through ssh. I'm running each command separately because I want to do other things in between executions. However, I don't want to recreate an ssh ...
1
vote
1answer
56 views

How can I reach a remote ssh server through my http proxy (80 port)?

I want to reach a remote ssh server through or over my http proxy. My proxy requires authentication, so I am a little lost.... could somebody give me a hand? Thanks in advance.
1
vote
2answers
113 views

Execute command on remote screen

On a remote server I have multiple screens open and I use each one for different purpose. For example the screen with the ID 'build' it is being used to compile some programs. I can open that screen ...
1
vote
1answer
21 views

Logging into my desktop from SSH says I have no updates, but I do

When I SSH into my Ubuntu Desktop, I get some output saying: 0 packages can be updated. 0 updates are security updates. However, running sudo apt-get upgrade tells me that a package ...
1
vote
3answers
149 views

sshd authentication times

I want to know where I can increase the number of times I can enter the password when I try to login via ssh? I am using CentOS 6.7 and I have just 3 times to enter the password before I got this ...
1
vote
1answer
133 views

SSH: shell opened in IP namespace

I'm trying to force users logging in through SSH to have a shell inside IP namespace. I've tried replacing the shell in /etc/passwd with something like ip netns exec sshns /bin/bash but it didn't ...
1
vote
1answer
123 views

set umask before every non login non interactive shell command

I'm using PHP script and to connect to ssh server. It executes one command and exits. Connection is made to non interactive and non login shell. Because of that it does not load .bashrc or ...
1
vote
1answer
153 views

Which processes do the ports (as communication connection endpoints) belong to in SSH port forwarding?

(1) For remote forwarding: -R [bind_address:]port:host:hostport Specifies that the given port on the remote (server) host is to be forwarded to the given host and port on the local side. ...
1
vote
1answer
223 views

How to pass environment variables to a new ssh-initiated login session?

Suppose that some variable FOO is defined (and export-ed) in the current environment. Let me call this environment E0. Now, I log into some other Unix system using ssh. % ssh ...
1
vote
1answer
93 views

Getting error with rsync and scp

My issue is an odd one. I am logged into my University's server with my host name and all that good stuff. I am able to copy files from my local computer into my school's account. My issue, is the ...
1
vote
1answer
67 views

chroot directive in sshd_config fails to exclude users

In Ubuntu, I have this SSH server configuration set up in /etc/ssh/sshd_config: Subsystem sftp internal-sftp UsePAM yes ChrootDirectory %h ForceCommand internal-sftp GatewayPorts no ...
1
vote
2answers
742 views

SSH into VirtualBox on Mac

I just installed VirtualBox on my mac, created a new Ubuntu Virtual Machine with "Use an existing virtual hard disk file" of the Cloudera Hadoop disk image. I'm able to start and run the virtual ...
1
vote
1answer
115 views

MacOS terminal ssh input buffer size

I am trying to cut-paste some switch config over an ssh session from my mac. It seems to start mangling it after a set buffer size. Surely cut-paste buffer is large enough, since I can cut-paste just ...
1
vote
1answer
16 views

gpg-agent tries to use a non-existent ssh key

I once did an ssh-add on an ssh key, let’s call it foo. Then I removed foo and added another key foobar for the same devices. Now gpg-agent always queries for foo first, even though it doesn’t exist. ...