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

learn more… | top users | synonyms

0
votes
1answer
18 views

Use rsync to transfer files from Windows to Ubuntu

I'm having trouble transferring files via ssh from a Windows box to an Ubuntu box using rsync and cygwin on Windows. The file transfer starts, but the newly created directories and files on the ...
1
vote
1answer
21 views

How to ignore “Unable to connect to target host” error messages

I am using an SSH tunnel. It works fine but it gives me these messages regularly: channel 5: open failed: connect failed: Unable to connect to target host channel 4: open failed: connect failed: ...
0
votes
1answer
22 views

Effect of limiting tcp connections through iptables to limit ssh sessions

I have limited no. of tcp connections through iptables to limit total number of ssh connections. Now when i am adding a rule with maximum limit of tcp connections lesser than currently opened ssh ...
1
vote
1answer
23 views

Difference between “local port forwarding” and “dynamic port forwarding”?

I am trying to understand the difference between "local port forwarding" and "dynamic port forwarding". In the ssh command for "local port forwarding", is it always required to specify the ...
0
votes
1answer
34 views

SSH Connect to hosts by using tunnel

I want to ssh connect from host A to host C directly with one ssh command. +---+ +---+ +---+ | A | -> | B | -> | C | +---+ +---+ +---+ Host A already have keys ...
0
votes
2answers
41 views

expect: does “” (spawn_id exp70) match glob pattern

I have written an expect script that works perfect for testing passwords on our network until it has looped through my list quite a bit, then the debug output shows that there is nothing to match. ...
0
votes
0answers
31 views

ssh publickey authentication to a Ubuntu running inside VirtualBox

I have a Ubuntu running inside a VirtualBox inside my Windows 8 desktop. I am trying to communicate between the Ubuntu and another Debian server in the network. I have enabled Port Forwarding in ...
2
votes
2answers
333 views

Can't set up ssh login without typing password

I set up automatically ssh login without typing password to a server by: cd ~/.ssh ssh-keygen ssh-copy-id -i ~/.ssh/id_rsa.pub tim@server1 It works on the server. Later I did the same on a ...
0
votes
0answers
18 views

Unable to run perl script for ssh login to windows server (using Net::SSH::Perl) from crontab [on hold]

I have a Perl script which is doing remote login to the windows server via the Net::SSH::Perl module. If I run the script manually from my shell, it gives no error. Running from a crontab, however, ...
0
votes
1answer
47 views

Fail2ban with firewalld

I'm trying to configure fail2ban to block ssh from a local hosts. Fail2ban is install on CentOS 7 with firewall (Linux 3.10.0-229.4.2.el7.x86_64 x86_64 ). I have copied the jail.conf to jail.local i ...
0
votes
3answers
24k views

why won't x11 display work through ssh login?

I have logged in to a remote server and am trying to display an x application(e.g. firefox). but an error message appears. the below are my attempts to open firefox Black@Black-PC ~ $ ssh -X ...
0
votes
1answer
27 views

Export mysql to remote server using one SSH session

I've come across a situation where I had to create a utilitary shell script that would be executed in many servers from different regions. The objective is to dump the local mysql database, copy it to ...
0
votes
1answer
526 views

ssh connection closed, after prompting password

I'm using a debian based distro for Raspberry Pi (Raspbian). Sometimes I cannot ssh to my Pi. A reboot solve the issue, but I don't always have physical access to the Pi. here's what happens: ...
2
votes
1answer
202 views

Let remote ssh session know about tmux?

Assume I run a tmux session on machine A and from it I start an interactive shell via ssh to machine B. I'd like to change machine B's PS1 to better suit the use from under tmux; for instance, I'd ...
0
votes
0answers
18 views

ssh does not decrypt private rsa key

I've noticed problems I've been having pushing code to a friend's gitlab. If the rsa key specified for use by ssh is encrypted with a password, ssh fails to ask me to provide the password and ...
4
votes
1answer
825 views

How do I prevent ssh remote login from breaking dbus?

I'm running openSUSE 11.3 on my workstation at work under KDE, I don't have root access to it. The default shell has been set to tcsh. When I am logged in at my workstation and log in remotely from my ...
1
vote
1answer
177 views

MIT Shared Memory Extension or MIT-SHM over ssh

I successfully created a privileged lxc archlinux container on an archlinux host with lxc. I set up a static ip via dnsmasq and ssh into it and I use xauth to forward X11. I then call programs like ...
10
votes
4answers
1k views

How do I trigger autocomplete without a tab key?

I'm ssh-ing to my machine using my iPhone with an app called ServerAuditior. It doesn't have tab key. See screenshot. How do I trigger autocomplete without the tab key? I don't want to type a lot of ...
1
vote
1answer
521 views

Remote ssh command not sending echo variable from a ksh script on AIX

I'm need to get the value of a variable from a remote host in a script using SSH and have to source an environment file first that does a shift at the end of its run. The command works locally and I ...
1
vote
1answer
768 views

DROP all for port 22 if not geoip set of US for iptables and xtables

I want to simply block all ssh access from anywhere but with in the US. This is my whole iptables, and I have followed ...
1
vote
1answer
15 views

How to discriminate between SSH and SCP for QoS in OpenWRT (and other systems)?

I regularly upload large amounts of data using SCP through my DSL upstream connection, which is limited to 1kbit/s. While I really want interactive SSH sessions to have highest priority, simply ...
0
votes
0answers
9 views

Is it possible to run FreeRDP without a display for running scripts?

I am working in a very strict enviroment where I only have access to a remote computer via RDP and it is impossible for me to enable SSH or SFTP etc on the other computer. I CAN connect to the ...
0
votes
1answer
47 views

SSH connection refused. Error 61

So, I set up another FreeBSD server. Everything was ok until I tried to connect to it via my old FreeBSD. On connection it echoes: Unable to connect to relay host, errno=61 ...
4
votes
1answer
625 views

How do I stop ssh-agent trying all keys with agent forwarding?

Often I'll connect via SSH to VM instances to deploy code from private Bitbucket repositories, cloning repositories via git over SSH. Today I was getting the error: conq: repository access denied. ...
2
votes
2answers
53 views

How can I set up one-way scp?

I've got a remote server my.server.com and I'd like to allow another user (stranger) to scp files onto the box. Goals: give as little access to the stranger user as possible stranger should not be ...
2
votes
2answers
52 views

ssh command with quotes

I have an odd error that I have been unable to find anything on this. I wanted to change the user comment with the following command. $ sudo usermod -c "New Comment" user This will work while ...
0
votes
0answers
21 views

line 23: Bad configuration option: blade [closed]

Im trying to ssh into my switch but I'm getting this error, anyone know why ?: ssh root@10.x.x.x -p 22 /Users/ahmadebadi/.ssh/config: line 21: Bad configuration option: ...
0
votes
1answer
40 views

Unable to use ssh-copy-id - mktemp: failed to create file via template

I have 4 identical boxes, I logged on to the first one and did sudo -s, followed by ssh-keygen -t rsa which generated the keys and placed them in /root/.ssh/ I then typed ssh-copy-id -i ...
7
votes
2answers
6k views

ssh says: You don't exist, go away!

Sometimes when I try to ssh to a server, I get the following message: You don't exist, go away! I haven't seen this before using ssh. What does this mean? Is there a problem with ssh or something ...
0
votes
0answers
18 views

Forward only one port in openvpn

I have a ‍openvpn server in Amazon Cloud and I use it to make a link between my home pc and linux computer which is located on a corporate network. It works except that it routes all traffic through ...
0
votes
0answers
13 views

Transfer a file via Putty to FTP server(cPanel)

I am logged into a VPS via a Serial Console using Putty. I have created my zip file now and now I need to transfer it to a remote web hosting account via FTP. They don't have SSH/shell access on that ...
1
vote
1answer
96 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 ...
-1
votes
0answers
13 views

How to move a compressed tar from one remote server to another?

I have a .tar.gz file at remote server A. I want to copy this file to remote server B and uncompress it there. How can it be done? [you@localhost ~]$ scp examplefile ...
1
vote
5answers
2k views

How to find which machines are idle on a cluster of many nodes

I run measurements on a cluster consisting of 32 nodes/machines. I do not require all nodes, only 4, for example. The problem is most of the time, the nodes are busy with other people running their ...
0
votes
0answers
46 views

PuTTY does not connect over SSH; other clients work fine

I have a CentOS system that I can connect to using several SSH clients (FireSSH, WinSCP, MySQL Workbench over SSH). For some reason, PuTTY, which was working a few days ago, can not connect. It will ...
1
vote
3answers
2k views

How to troubleshoot failed X11 forwarding with ssh?

When I try to establish an X11-forwarding connection to myserver, I get the following error: % ssh -X myserver xlogo X11 connection rejected because of wrong authentication. X11 connection rejected ...
2
votes
1answer
22 views

ssh not showing full output of command

I have a list of servers 20+ that I would like to get the shell that they are using. While logged onto a server I can run the following command $ ps -p $$ PID TTY TIME CMD 12022 pts/6 ...
1
vote
1answer
31 views

Appending a line to a file via a ssh chain

From my machine A, I got access to a machine B that can access a machine C. From A, I want to append a line to the file ~/.profile of C. So far I tried: ssh user@B ssh user@C "echo \"line of ...
-4
votes
1answer
67 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 am asked how many codes I want to make and with that answer on ...
3
votes
1answer
1k views

ssh-add -D doesn't erase stored keys from the ssh-agent

How come this happens?: stan@tcpc:~/.ssh$ ssh-add -l 8192 e0:45:5e:cc:45:3e:17:2b:a6:54:6f:8d:53:1b:j2:e3 github (RSA) 2048 25:41:53:a6:45:5d:ac:eb:5c:45:f8:ce:42:a9:he:aa BITBUCKET (RSA) ...
3
votes
3answers
56 views

How to start SSH daemon on boot on Linux Mint Debian v2

I'm using Linux Mint Debian v2, 64-bit. I noticed recently that my ssh daemon does not start automatically on boot. It used to. I'm not sure if it had to do with my UFW configuration or sshd_config ...
0
votes
1answer
31 views

SSH: connection refused to wlan, works when i plug wired lan and unplug

If i do: ssh 192.168.1.8 //my wlan0 connection i get: ssh: connect to host 192.168.1.8 port 22: Connection refused However, if i plug the LAN, i can ssh to 192.168.1.7 (wired ip). And after ...
0
votes
1answer
38 views

Is there a specific SSH boot log?

My sshd won't start at bootup. I have to type it in manually (sudo service ssh start). I've posted a question on how to start ssh at bootup (How to start SSH daemon on boot on Linux Mint Debian v2), ...
2
votes
1answer
20 views

Dialog Script break sequence

I am trying to create a console based menu for sshing to devices within our network, but I don't want the user to be able to break out of the menu. Would dialog work in this case? If not do I have any ...
6
votes
1answer
120 views

Tracking my shell path in Emacs

Not a long time ago, I found the following precious snippet that allows Emacs to track my current directory on any ansi-term buffer. More specifically, if I cd <some/path> from within a ...
0
votes
3answers
1k views

Script SFTP with password - HP-UX

I would like create a script in HP-UX to send in sftp with password. I have this command sftp -o PasswordAuthentication= but if I answer yes or no after, I have this issue "Host key verification ...
21
votes
4answers
61k views

SSH login with clear text password as a parameter?

I need to login to a user that I've created on a remote host running Ubuntu. I can't use an ssh key because the ssh login will happen from a bash script ran within a server that I won't have access to ...
0
votes
1answer
16 views

Having trouble with rsnapshot via ssh (from debian laptop) of Nokia n900

I'm trying to do a backup of my Nokia N900 (a linux box smart phone) with rsnapshot. For reasons I can't understand, rsnapshot throws up the following error: rsync: Failed to exec /usr/bin/ssh -p ...
0
votes
1answer
1k views

CentOS 7 add new user with root privileges

I am reading this tutorial, and trying to create a new user with root privileges and then block root access via ssh in a CentOS 7 server. The problem is that the new user is blocked from doing root ...
1
vote
1answer
2k views

OpenSSH hangs after login without showing login prompt

I ran across an issue with ssh after fresh Ubuntu 13.10 installation on Lenovo T420. I tried git pull (which failed) and this led me to more general ssh failing. After spending some 2-3 hrs of ...