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

learn more… | top users | synonyms

1
vote
0answers
42 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
53 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
49 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
36 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
48 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
30 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
27 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
56 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
58 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
41 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
90 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
111 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
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 ...
0
votes
1answer
42 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
51 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
106 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
29 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
86 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
117 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
48 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
30 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
41 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
49 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
38 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
31 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
121 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
34 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
57 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
95 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
45 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 ...
2
votes
2answers
36 views

How can Bash determine if it is running due to an rsync over ssh?

I need my Bash init scripts to be able to distinguish between having been invoked like ssh me@host /some/complicated/operation, and having been invoked like rsync -e ssh /src me@host:/dest In the ...
2
votes
2answers
66 views

ssh reverse tunnel with remote ip

From a server 192.168.0.1, I'd like to reach a server 192.168.0.2 on port 80. 192.168.0.2 can reach 192.168.0.1, but 192.168.0.1 can't reach 192.168.0.2 (firewall). I have set up a reverse proxy, by ...
2
votes
2answers
81 views

How to prevent CTRL+C to break ssh connection?

When I want to stop tail -f I press CTRL+C and return to prompt. But when I run ssh connection the CTRL+C breaks the connection. (meanings of flags described here) ssh -t svf "cd ~/w/logs; tail -f ...
0
votes
1answer
66 views

bash error: cannot execute binary file

Why when I run the command gnome-terminal -e "ssh -t sv \"cd ~/tmp/perl_libs/bin; bash /usr/bin/tail -f ~/open; echo 'YES'; exec $SHELL\""` I got /usr/bin/tail: cannot execute binary file
0
votes
1answer
28 views

ssh alias with localhost forwarding

Does anyone know what the best way is to create an ssh alias with a localhost argument? Everything I've searched for only includes host, hostname, etc. Such as: Host example2 Hostname example.com ...
0
votes
1answer
49 views

How to “open” on a “filtered” port

I am running: $ ssh user@ip_address and waiting for long time without response. I try to verify the status of my port: $ a=`nmap ip_address -PN -p ssh | grep filtered` $ echo $a 22/tcp ...
1
vote
1answer
41 views

Remotely starting a screen session through ssh and closing the ssh session immediately

My goal is to remote to a server through ssh, start a screen, start a script, let the script run, and exit the ssh session while keeping the screen running its own python script. This is what I have: ...
2
votes
1answer
61 views

Bring process to 'foreground'? [duplicate]

I am using an SSH client to connect to a Solaris server. I had a process running but my connection disconnected. I reconnected and can see the process running when I do ps -al. How can I bring this ...
1
vote
1answer
76 views

How to disable SFTP for a user, but keep FTP enabled

I've created a user called "ftp-acc" and limited it to a single directory using VSFTPD. When I login to the account in Filezilla using FTP, it is successfully restricted to a single directory. ...
0
votes
1answer
16 views

Remote tab title in Konsole

I login to remote hosts with small one-line scripts, such as: r1: ssh -C user1@host1 r2: ssh -C user2@host2 etc. But when I login with these commands, the Konsole tab title is not changed to ...
0
votes
2answers
51 views

How to append a file through ssh? [closed]

I want to append a file that is already present on the server through ssh i m try: ssh root@192.168.100.195 echo "hello gourav how are you">/g.txt but no data in g.txt
1
vote
0answers
32 views

Whitelist Cloud 9 SSH Workspace in AWS

I would like to use Cloud 9 SSH Workspace to SSH into my AWS EC2 instance. I would like to do this for many reasons, one of which is that I am not allowed to install an SSH client on my work computer. ...
3
votes
1answer
58 views

How do I set up ssh port forwarding and run a curl in a single command?

I want to set up port forwarding with ssh like so: ssh user@10.10.10.10 -L 5656:remoteserver:80 -N and then run a curl command: curl http://localhost:5656/my/endpoint/ I can accomplish this just ...
0
votes
1answer
61 views

how to login by ssh when default shell is wrong

I have change default root shell to wrong path. Now the first line of /etc/passwd is look like the following string: root:x:0:0:root:/root:/usr/bin/bash Then I logout from server and now cannot log ...
3
votes
1answer
66 views

Upgraded cygwin on PC and now can't SSH into it from Linux

I got everything setup perfect and was able to ssh from a Linux box to my PC's cygsrv (Cygwin SSH Server) w/o any problems w/o using a password (BTW, I'm using a DSA key). All .ssh permissions were ...
0
votes
1answer
55 views

Screen/system hangs when using scp or rsync + ssh in local network

First, I noticed frequent hang ups with the mouse when using scp in local network. I checked RAM usage, but free -m showed me about 33% usage without buffers/caches. (I have 8G RAM.) The CPU usage was ...
3
votes
1answer
38 views

How to upload a file and then check it and run some other commands using only ssh, cat, and diff in a single SSH session?

The goal is to change some parameters on a lot of devices on connections that are kind of unreliable (wireless)--according to csv that has the format: IP,Parameter,Parameter I would like to make a ...