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

learn more… | top users | synonyms

2
votes
2answers
32 views

Can't login to server with SSH because of a script in /etc/profile.d exiting with exit status 1

so I have this problem, I can't login to my server with SSH. See: ssh -v myuser@myserver debug1: Authentication succeeded (password). debug1: channel 0: new [client-session] debug1: Requesting ...
1
vote
3answers
21 views

ssh config auto execute remote command

I connect to server through ssh under vpn. To make project changes I always do the same procedure after accessing server - log as project_user, because with my identity I get sh shell and I don't have ...
-1
votes
1answer
50 views

SSH into a Remote Machine with a Password

I'm to trying to dd a remote disk using SSH with the following command: ssh userfoo@111.111.111 "dd if=/dev/xvda1 | gzip -1 -" | dd of=/home/user/image.gz I get the following error: ssh: ...
0
votes
2answers
28 views

ssh from screen leads to unknown terminal error

I'm trying to make an ssh connection (via lsh) from one Ubuntu host to another from within screen. If I try to run mc right after that I get the following error: Unknown terminal: screen-256color-s ...
2
votes
1answer
30 views

View remote value of $PATH inside shell script

When executing this bash script, it only shows my local path. ssh ${REMOTE_HOST} 'bash -s' <<EOL set -e source ~/.profile echo $PATH # Commands here don't work because $PATH is ...
0
votes
1answer
39 views

ssh asking for passphrase that doesn't have passphrase

I'm trying to build docker image with this docker file and I need to clone some private repositories from bitbucket. FROM ubuntu RUN chsh -s /bin/bash RUN apt-get update RUN apt-get install -y ...
1
vote
0answers
14 views

Trying to use an X server over ssh starts the server using a local display instead of remote [on hold]

I have a desktop and laptop computer, I would like to control the desktop from the laptop. I have an ssh server on the desktop. On the laptop I ran xinit and in the terminal I got I ran the ...
0
votes
1answer
13 views

How to run a script on a remote machine using the screen command and ssh?

I'd like to run on a list of servers and run remotely a script while using screen. Manually, I'd do: screen -RD ./run_script and manually remotely I'd do: ssh root@server "screen -RD && ...
0
votes
1answer
20 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
23 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
24 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
27 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
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
340 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
22 views

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

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
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 ...
0
votes
1answer
29 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
35 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 ...
1
vote
1answer
16 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
10 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
49 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 ...
2
votes
2answers
55 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
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 ...
0
votes
0answers
15 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 ...
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 ...
-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 ...
0
votes
1answer
53 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
0answers
47 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 ...
2
votes
1answer
23 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 ...
0
votes
1answer
32 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 ...
2
votes
1answer
21 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 ...
0
votes
1answer
39 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), ...
3
votes
3answers
60 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 ...
3
votes
2answers
62 views

How to copy file contents to the local clipboard from a file in a remote machine over ssh

To solve this problem I always have to use scp or rsync to copy the file into my local computer to open the file and simply copy the contents of the text file into my local clipboard. I was just ...
0
votes
2answers
37 views

Script works without sudo, fails with sudo

When I launch this script: #!/bin/bash -v sshpass -p '<pypasswd>' scp blah.img root@myip:/home/user/blah.img exit 0 with ./script.sh or nohup ./script.sh & it works. But when I do ...
2
votes
2answers
52 views

Add a user wthout password but with SSH and public key

I want to add a user to Red Hat Linux that will not use a password for logging in, but instead use a public key for ssh. This would be on the command line.
0
votes
1answer
30 views

Disable SSH tunnel “open failed” messages

I want to disable the "open failed" messages that appear in a SSH session when tunnelling is disable. It interferes with my SSH session if I'm, for example, writing something in vim, then the whole ...
0
votes
3answers
49 views

download file from internet to server using SSH

recently because of some problem i lost all my server file and request to hosting team to provide me backup. they will provide me link from where i have to download that compressed file and upload ...
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 ...
2
votes
1answer
33 views

Why does the `users` command return different users depending on whether I ssh or open a new terminal?

How does users define what users are logged in? If I ssh into a box twice, I see my username twice listed if I execute users. However, if I create a new login shell via sudo su -, I do not see root ...
1
vote
1answer
42 views

echo $? prints 1 after running ssh-add

I am trying to use SSH Agent Forwarding to configure a deploy script on CentOS. I have a public key copied into the authorized_keys file in ~/.ssh of my deploy user on machine server. I am ...
-1
votes
1answer
52 views

SSH console login working but can't SFTP does not, why?

I am trying to SFTP with Filezilla but it is not able to connect to the server and I think this is due to my firewall rules? I can SSH absolutely fine. The port for SSH is 6128. Can anyone tell me ...
0
votes
2answers
41 views

How (and whether) to copy and paste on an ssh web interface?

A web page provides web-based ssh access to a linux machine. I'm using it one a Windows7 machine. While editing a file in vi, I want to repeadetly enter the following: j0nhd0 This (1) goes to the ...
4
votes
1answer
38 views

can't run remote ssh command without heredoc

I can't get this command to work: user@server:~: ssh otherserver bash -ic 'source .profile; some-aliased-command' Variations I tried user@server:~: ssh -t otherserver bash -ic 'source .profile; ...
1
vote
0answers
29 views

Error “Can't assign requested address” when ssh-ing to remote server

On ubuntu 14.04 I have installed openssh, changed the ssh port. I can login within LAN with no problems, but I cannot access it from outside. I also have: allowed it though firewall and set up port ...
5
votes
3answers
186 views

How to display commands in a different terminal?

I have a raspberry pi with a screen attached to it. It boots up to a login prompt. I have no keyboard and no mouse attached to it and would like to keep it this way. I proceed to login to it via ssh ...
1
vote
1answer
32 views

How to ensure ssh via cgroups on centos?

When some cpu-intensive processes are running on the server, chances are that we could not log in to this machine with error 'operation timeout' via ssh command. According to this post answered by ...
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. ...