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

learn more… | top users | synonyms

0
votes
0answers
9 views

ssh client closing window hook

I need to hook the moment when the client disconnected from the server. I can hook it when user apply exit command (using ForceCommand). But when it just closes a window where ssh is running my ...
-1
votes
0answers
43 views

code is not working , not able to create new directory using ssh

Please find the below code. I am facing issue in passing the variable which is the name of the directory to ssh to create the new directory on the remote host. out put I am getting: ssh: /: Name or ...
4
votes
1answer
31 views

Should the key for an automatically running cron job that runs over ssh not have a passphrase?

I'm reading an article in Master Linux Now 2013 called OpenSSH: Easy Logins and it uses ssh-agent to allow you to enter a passphrase for your key once, and then you're able to connect to a remote ...
0
votes
0answers
14 views

PAC Manager localhost configuration

I have installed pac manager to open multiple ssh sessions of my local machine. I have created a SSH session and plugged in my ipaddress, username and password but when I click connect "button", it ...
0
votes
2answers
25 views

Working with firewall-protected server through ssh (dynamic IP)

I need to work on a Debian 6 server through SSH. The server is firewall-protected and SSH connections are filtered based on the user IP. Unfortunately I have an ISP provider with dynamic IP - it's ...
0
votes
0answers
36 views

Many Linux commands hang during execution, but system is alive [duplicate]

I can access the system through ssh, but many commands would hang, like the following: # ps axf Read from remote host 172.17.102.22: Connection reset by peer Connection to 172.17.102.22 closed. # ls ...
2
votes
3answers
86 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
2answers
28 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
53 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
3answers
33 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
31 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
43 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
15 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
21 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
24 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
25 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
28 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
32 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
342 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
23 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
19 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
18 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
50 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
56 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
42 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
57 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
48 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
61 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
64 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
31 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
17 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
43 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
55 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 ...