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

learn more… | top users | synonyms

1
vote
1answer
42 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
34 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 ...
3
votes
3answers
110 views

Transfering files via ssh but without scp or sftp

I need to transfer files via ssh, but unfortunately scp and sftp are not viable, as the host I am connecting is just a "door" node that is redirecting me to a different machine available only on a ...
1
vote
1answer
22 views

Prevent script from generating stdout if called from given program

I want my gnome-terminal to show my current user and host in its titlebar, and that of the remote when I am using ssh. To do that, I created a script ~/bin/ssh, with ~/bin in my PATH before /usr/bin: ...
1
vote
4answers
57 views

Why does read with pipeline fail in an ssh session?

Why does this show blank lines instead of folders found by find? ssh -o stricthostkeychecking=no -o userknownhostsfile=/dev/null \ -o batchmode=yes -o passwordauthentication=no user@myserver.xx \ ...
0
votes
1answer
46 views

ssh to remote machine using shell script [duplicate]

I want to ssh to remote machine within shell script but remote machine require password. How should i provide password in my script? I tried below but its not working. Please suggest #!/bin/bash SSH ...
1
vote
1answer
30 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, ...
3
votes
1answer
83 views

Tunneling multiple ports through a single port [duplicate]

I'd like to forward several ports from my local machine to a remote machine through SSH tunneling. However, I want this to happen across a single port. Is there a protocol or tool that can multiplex ...
1
vote
1answer
160 views

How can I enable trusted X11 forwarding on Putty (with Xming) or otherwise get rid of one second delay when starting X11 aplication?

I've noticed one second delay before Midnight Commander or mcedit starts in Putty. It took me a while before I realized it is caused by X11 forwarding enabled. mc -X start immediately. Unfortunately ...
-2
votes
1answer
21 views

backup from server to computer (SSH)

First of all I am newbie at SSH. Could you tell me, how can I backup files from remote server to computer storage disk? I use Windows and program PuTTy to connect to server through ssh. Can you write ...
1
vote
2answers
91 views

Cannot ssh without password [duplicate]

I have been trying to set up remote file copy without password between 2 Linux machines. I have appended my .ssh/id_rsa.pub from local to remote .ssh/authorized_keys. I have also set up correct file ...
0
votes
1answer
57 views

I can SFTP but not SSH

This question is similiar, but I'm experiencing the reverse scenario. SFTP works but I'm not yet connected using SSH. I'm using a config file and I'm able to sftp to remote server. Local machine is ...
33
votes
6answers
3k views

Linux equivalent to PowerShell's “one-to-many” remoting

Coming from Windows administration, I want to dig deeper in Linux (Debian). One of my burning questions I could not answer searching the web (didn't find it) is: how can I achieve the so called ...
9
votes
3answers
493 views

Why doesn't sshd use a pseudo terminal when the ssh client's argument is followed by an interactive program?

The normal way to connect to an SSH server is ssh username@ip_address. But a user may only want to run a program on the remote machine. So the program name follows after the normal argument which is ...
0
votes
1answer
59 views

Why am I still being asked for an ssh password when I'm using private key authentication?

I have Linux mint on my pc. I have a public/private key pair to ssh into my router without having to type the password. It works on Windows using putty, but Mint isn't when I run it from terminal. ...
1
vote
0answers
49 views

run gnu parallel ssh with ssh argument specifying shell [closed]

I want to run gnu parallel in a specific remote shell and profile, like this: $ ssh -t me@server.com "bash --rcfile .bashrc" I looked around and didn't find how to specify this in gnu parallel. I ...
0
votes
1answer
123 views

How to have Terminator display remote hostname in title bar? [duplicate]

When I am SSH'ed into any one of my Linux devices, the title bar on Terminator displays user@hostname, where hostname is the computer I am SSHing from, rather than the computer I am SSH'ed into (i.e. ...
1
vote
0answers
67 views

Vagrant ssh ask for password

I have been following this doc on Vagrant. I installed VirtualBox and Vagrant, then created a folder and ran vagrant init and vagrant up. When I typed vagrant ssh I got this message: The private key ...
1
vote
1answer
67 views

openssh: Have ssh add keys to agent as needed

When I ssh into a server and my key isn't loaded in the agent, I have to abort, then run ssh-add to get my key into the agent. I'd like the ssh command to add the key automatically if it isn't ...
1
vote
1answer
68 views

Change SSH banner which is grabbed by netcat

I have installed openssh server. I want to disable banner which is shown when I do :: nc 0.0.0.0 22 It shows something like this :: SSH-2.0-OpenSSH_6.7p1 Raspbian-5 . How to make it show something ...
0
votes
0answers
29 views

SSH Automation - Dynamically execute Script over SSH [duplicate]

Is there any tools do dynamically control with a local script a ssh session. So I can control the key pressed, wait some time, control the output. Something like AutoIt for Windows in the Linux/SSH ...
1
vote
1answer
40 views

How to execute in-line commands through ssh

I'm struggling to execute commands through ssh, especially aliased command. The alias I need is ldocker which is set in the remote .bashrc. So far I tried: $ssh bugs2 '. .bashrc && echo ...
2
votes
0answers
50 views

git push/pull with ssh key

I have a 'git --bare' repo on a linux machine. I wish to allow another user from a different machine to push/pull to it. I have their ssh key. Is there some way I can allow them to execute the ...
0
votes
0answers
17 views

How to launch a command on external machine on Windows Cygwin [duplicate]

Suppose, we have 2 local machines: Linux and Windows with Cygwin. We have an external server, that exists in ~/.ssh/config file on both machines: Host beta HostName <server IP> User ...
0
votes
0answers
36 views

T-Pot configuration: Connection closed by remote host

I just followed a tutorial video to setup T-Pot honeypot on a virtual machine. At around the 7 minute mark, the command entered does not work on my setup and gives either connection timed out or ...
0
votes
0answers
41 views

For some reason “sudo ssh -w any -o Tunnel=ethernet root@remote” creates tun devices instead of tap devices

To connect multiple tunnel endpoints to a common bridge interface, I have to create a Layer 2 tunnel over ssh. The server is Ubuntu 10.04, the client is Ubuntu 14.04. I have enabled PermitTunnel yes ...
0
votes
1answer
57 views

Block incoming ssh with a reply message

I want to block all the incoming ssh to my system from a particular set of ips and send them a typical message saying something of sort: You don't have permissions to access this server as the ...
3
votes
2answers
77 views

Passing a list of two PIDs to xargs only kills the first using ssh

I'm retrieving a list of two PIDs that I want to kill. My pipeline looks something like ps -ef | grep foo | grep -v grep | awk {'print $2'} | xargs kill -9 Both processes are killed when executing ...
0
votes
2answers
44 views

How to use two ssh comands in the same script and then continue executing other commands?

To login into my database the following are the steps I follow every time: ssh unix_id@something.com password: Once I am connected, I log in into a local database server in the same terminal: ...
1
vote
2answers
109 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, ...
0
votes
1answer
133 views

My box is under attack

now I'm logged into my digitalocean's box and I can clearly see this in my log and I guess somekind of script is trying to break in: Mar 8 13:25:25 sshd[11311]: Invalid user schedule from ...
1
vote
1answer
44 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 ...
0
votes
1answer
44 views

Distinguishing between running a process in client terminal or on the server when using SSH [duplicate]

I'm new to Linux. I was trying to play a video on my laptop using SSH command from my android phone(JuiceSSH). but the video started playing in bytes in my phone's terminal. the player was VLC player. ...
-2
votes
1answer
57 views

CentOS 7 SSH errors

having a bit of an issue with SSH and my CentOS 7 server. Here's a description of my problem. I have open-ssh setup on my server, and am able to ssh in as root (The server is a remote server, and ...
1
vote
1answer
188 views

Problem with SSH connection: ssh_exchange_identification: Connection closed by remote host

I'm having trouble connecting to desktop1 (see figure below) from server (red arrow in figure) with ssh. It always says: ssh_exchange_identification: Connection closed by remote host I don't have ...
0
votes
1answer
39 views

reading the output of netstat for tcp

If I ssh root@server -R 5901:localhost:5900 and netstat -an I get: Active Internet connections (servers and established) │ Proto Recv-Q Send-Q Local Address ...
0
votes
1answer
29 views

Issue with copying the public Key

I'm trying to copy the public key to my remote host but I keep getting this message, "Permission denied (public key). Password authentication is set to YES in my /etc/ssh/sshd_config file, I have ...
1
vote
1answer
98 views

IP forwarding through ssh tunnel

The situation involves 3 machines: A. Some laptop connected somewhere to the internet via any mean B. A server connected to the internet through a standard ISP (static IP provided by dyndns: ...
2
votes
0answers
163 views

Cygwin/X DISPLAY number no longer :0?

I use Cygwin/X to ssh into a linux computer cluster using a Windows (10) pc. Yesterday I was in the middle of an ssh session using X11 forwarding. Suddenly one of the X windows open started to hang ...
0
votes
2answers
52 views

Subnet routing problem

In my LAN I have an openwrt router configured with IP 10.0.0.1. It is the default gateway (and dhcp server) in my LAN 10.0.0.0/24. Now I have a new network, say 10.9.0.0/24 used by virtual machines. ...
1
vote
1answer
34 views

RHEL7 “Too many authentication failures for”, MaxAuthTries has no effect

I'm using Kitty (putty clone) and Keepass agent (similar to pagent). Keepass agent contains 5 ssh keys. This setup works fine with all linux boxes I've encountered so far, connection to our new ...
1
vote
2answers
43 views

How to randomly pick one of multiple hostnames under one alias (~/.ssh/config)

Is it possible to make ssh pick a random ip adress (using a wildcard) to connect? We have 30 computers with IP addresses from "asd1.asd.asd.asd.com" to "asd30.asd.asd.asd.com", and i want to connect ...
1
vote
0answers
59 views

Slow SSH connection on embedded platform

I am operating an embedded device running the linux core. I have OpenSHH_4.9p1 installed running in debug mode and trying to establish an SSH connection using PuTTY. After the login screen everything ...
3
votes
1answer
40 views

Sourcing .bashrc from ssh after removing the prompt string check

I have a .bashrc file that needs to be sourced non-interactively. The problem is that on the file there is this return statement preventing from sourcing by code: [ -z "$PS1" ] && return ...
1
vote
0answers
37 views

scp to a KVM guest behind NAT

I have a KVM guest running on a server accessing it via virt-manager. I'm running the guest from my_pc. server has a public IP address and both my_pc and guest can ssh it. guest has a 168.192.x.x IP ...
1
vote
1answer
172 views

Use HAProxy to tunnel SSH through https

I have a server with Apache webserver on it and many websites running on http (port 80) and https (port 443). I would like to use a proxy on port 443 in between Apache and the user. In this page, ...
0
votes
0answers
45 views

Ansible: running from virtualenvwrapper with pip installation

I'm trying to test ansible with a "pip" installation of ansible in a virtualenv of python managed by virtualenvwrapper. However, I am having problems to use the ssh-agent and the SSH keys: (ansible)$ ...
0
votes
0answers
80 views

SSH connection failed with publickey authentication

I have set up SSH connect between two AIX servers. But It failed when I try to ssh to the server side, sending publickey packet and no reply return. Both client and server users are passwordless, ...
0
votes
1answer
126 views

ssh publickey anthentication failed

I have set up SSH connect between two AIX servers. But It failed when I try to ssh to the server side, sending publickey packet and no reply return. Both client and server users are passwordless, ...
1
vote
1answer
57 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 ...