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

learn more… | top users | synonyms

2
votes
1answer
38 views

How can I remotely access an intranet website from an external network via an SSH tunnel?

I recently setup FreeIPA on an internally accessible system at home. I'd like to manage this web UI from networks that are external to my LAN, but at the same time, I don't want to have to expose this ...
3
votes
1answer
221 views

How to access my local network from anywhere over ssh?

What do I have to do to be able to access my local network over ssh with a dynamic IP address?
-1
votes
1answer
21 views

the sudoer can't restart ssh service on debian8.1

I have installed debina8.1 ,set the sudoers configuration this way. 1.apt-get update 2.apt-get install sudo 3.adduser test 4.usermod -a -G sudo test When i connect vps with test account name, and ...
0
votes
0answers
10 views

SSH - using a command on remote system to execute a local script [duplicate]

On a remote machine, I have a file that I want to open on my local machine. The local program accepts certain SFTP URLs. For example: local_program sftp://remote.host/~/file.txt I want to use an ...
2
votes
0answers
23 views

Data written to /dev/pts/x inside SIGINT (Ctrl+C) handler is randomly discarded [closed]

Have Archlinux64 on VirtualBox. If I declare a SIGINT trap like this: trap 'echo x' INT inside an ssh session (running bash) and press Ctrl+C multiple times, only a few times does something appear ...
0
votes
1answer
16 views

How to customize port in filezilla to connect my vps?

The port of target vps is 28399 ,not 22 ,i want to connect it with filezilla. I found that the port can only be 22 ,how can i customize the port ,make it to be 28399 or any other number?
2
votes
3answers
50 views

strange ssh problem: “open failed: administratively prohibited:”

I have a VPS to be set as my socket5 proxy, the Firefox plugin AutoProxy was installed. ssh -p 2034 -D 127.0.0.1:1080 root@vps_ip The port on my VPS is 2034. The command can work for some time, ...
0
votes
2answers
45 views

rdiff-backup operation not permitted

Objective I'm trying to execute the following command in my Python script: rdiff-backup --terminal-verbosity=5 --remote-schema "ssh %s -p1019 -i C:/Users/Adam/.ssh/private-passphrase ...
0
votes
1answer
90 views

AWS VPC NAT | ssh_exchange_identification: read: Connection reset by peer [closed]

I had a tough misleading error while connecting in AWS VPC subnets. The error did occur in B->A connection, and did not happen while A->B, so at the beginning I thought that it is library bug. It ...
0
votes
2answers
47 views

scp not working without password

I created keys so I can transfer files and run commands without having to enter in a password. I used this guide to do it: ...
0
votes
1answer
26 views

Unable to execute batch remote commands after pkill command

We've a scenario where I'm executing various remote commands at once like the following: ssh user@remote-ip " ps -A | grep java rm -rf /usr/share/tomcat/webapps/ROOT ls " The above set ...
1
vote
1answer
50 views

Exiting a script called from another script via SSH

Suppose that bash script X is being called within another bash script Y. If I directly execute script X on a local machine, after X's completion, the program exits to the terminal. However, when I ...
0
votes
1answer
72 views

How to run multiple sudo commands over already opened ssh connection

I am trying to navigate from one server"USER1" to another using ssh as a user "USER2". ssh -t $hostname "sudo su - USER2; whoami; pwd" Post executing the above, I am able to successfully navigate ...
1
vote
2answers
78 views

How do I scp a file from server A to server B from cron?

I have a file in server A which I am able to do transfer to server B using scp. I need to do this through a cron entry. server B has a password. How do I perform this?
0
votes
1answer
44 views

Open Wrt with nodogsplash

I am using OpenWrt in my TP_Link TL-WRD3600 router. I have already set up a hotspot plugin (Nodogsplash) on my router. Now I need to allow access to some website before authentication on the splash ...
3
votes
3answers
141 views

Setting up a ssh-only jump box

I'm admining an AWS cluster, and am currently planning to run ssh access exclusively through a single jump box rather than dealing with public keys or LDAP authentication for ever-changing access ...
3
votes
1answer
43 views

SFTP on Raspberry Pi troubleshooting

I'm trying to create a folder shared with SFTP in my Raspi. There are some issues, which are reported to be related to folder administration rights. Trying to solve them seems useless. I'm reporting ...
0
votes
0answers
43 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 ...
-2
votes
0answers
59 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
59 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
30 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
33 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
38 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
5answers
134 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 ...
2
votes
3answers
64 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 ...
-2
votes
1answer
61 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
37 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
41 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
70 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
16 views

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

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
42 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
39 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
35 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
42 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
43 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
48 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
368 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
28 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
42 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
41 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
37 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
15 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
64 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
63 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
66 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
78 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
29 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
25 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
1answer
127 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
79 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 ...