SSH (Secure SHell) is a protocol for running commands on a remote computer.
0
votes
0answers
9 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
13 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
66 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
39 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 ...
27
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 ...
7
votes
3answers
448 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
31 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
15 views
run gnu parallel ssh with ssh argument specifying shell
I want to run gnu parallel in a specific remote shell and profile, like this:
$ ssh -t [email protected] "bash --rcfile .bashrc"
I looked around and didn't find how to specify this in gnu parallel. I ...
-1
votes
0answers
21 views
AllowGroups and DenyGroups in sshd_config does not stop incoming ssh, Linux Mint Rosa
I'm trying to limit my ssh users for security reasons and stop all users for software agents and bots from being able to ssh into the machine.
This link is very straightforward that I can allow and ...
0
votes
1answer
25 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
22 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
36 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
31 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
31 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
40 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
13 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
16 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
52 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
0answers
23 views
docker container: failed to ssh to localhost
I'm using docker with ubuntu, in a created docker container i need to ssh to localhot, but when i run this command:
ssh localhost
the output is like this:
I searched a lot and no solution solved ...
3
votes
2answers
45 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
37 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 [email protected]
password:
Once I am connected, I log in into a local database server in the same terminal:
...
1
vote
2answers
70 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
72 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
30 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
36 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
35 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
35 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
22 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
65 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: ...
1
vote
0answers
52 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
44 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
19 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
33 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
32 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
31 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
18 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
49 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
21 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
31 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
44 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
40 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
32 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
52 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
52 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
46 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
23 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
26 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 ...