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

learn more… | top users | synonyms

2
votes
0answers
66 views

Rlogin prompting for remote password (Kali / Metasploitable)

I am following a tutorial that can be found here. http://www.kalitutorials.net/2014/05/metasploitable-2-vulnerability.html Specifically the "Remote access vulnerability - Rlogin" section. When I ...
2
votes
0answers
42 views

Flash OpenWrt Routers from Telnet

I have two routers. One has Chaos Calmer and the other has Attitude Adjustment. When I turn them on and check arp, nothing comes up. When I check route, the hardware address says (incomplete) but the ...
1
vote
1answer
16 views

Working with screen via another screen session

I connect to Host1 using ssh and start a screen session. From one of those windows I ssh into the Host2, which launches a screen session on login. How can I create new/switch between screen windows ...
0
votes
0answers
37 views

SSH multi hop with certificate

I need make a SSH multi hop connection from A --> B --> C B is a bastion host and C is the target. In my client (A) we are the two SSH certificate, for B and for C, how to make a connection to C ...
0
votes
1answer
50 views

Why the number is rounded over ssh? [duplicate]

localhost:~ $ df -k / | awk '{print $3/1024/1024/1024}' 0 0.00618061 localhost:~ $ ssh localhost "df -k / | awk '{print $3/1024/1024/1024}'" 01 01
3
votes
1answer
43 views

Disabling ssh password authentication does not work on my debian VPS

I have a Debian 7 VPS setup. I just enabled SSH Key authentication and disabled password authentication but the disabling did not work. When I attempt to SSH into my VPS, it prompts me for my SSH Key ...
1
vote
0answers
96 views

Give a user permission to one folder

I have made so my group "sftponly" can access the users home folder. But right now the user in the group don't have permission to other folders, but they have permission to see them. How can I do so ...
0
votes
0answers
33 views

OpenWrt with Nodogsplash

I have a web application in MVC4 for Hot Spot Management system. I using it with OpenWrt and Nodogsplash, Now i need to authenticate the users in to external website. Is there any way to allow to ...
2
votes
2answers
40 views

transfer many similar files over ssh

A service on a linux server is only able to do full backups, where each backup is a .tar archive (no compression). Many contents of the archive do not change from day to day. Each .tar file size is ...
0
votes
0answers
38 views

Error installing java on Virtual Machine

I am trying to deploy a server app (BaasBox) to Google app Engine BaasBox requires java 1.6 or higher to execute. when I check for java on the virtual machine using java -version, I get this: ...
2
votes
2answers
42 views

Simple notification on program completion

I'm running something while ssh'ed into a machine (through mosh). I would use sendmail to get a notification on termination of a program, but this machine cannot connect to the network for security ...
1
vote
1answer
49 views

Pinentry fails with gpg-agent and SSH

I'm running Fedora 22. I'm trying to setup GnuPG to have my SSH connections authenticated using my PGP authentication subkey that is located on my Yubikey Neo. I have a systemd unit starting the ...
3
votes
1answer
92 views

Possible to pipe command using su via ssh

I'm trying to write a python script to remotely update the login passwords for a set of account I administer - I can already successfully use python to pipe remote commands via the stdin of an ssh ...
1
vote
1answer
31 views

dropbox process stops when I log out of ssh

I tried every solution from How to run Dropbox daemon in background? and nothing solves my problem: Basically, I already installed dropbox on my Ubuntu 12.04LTS headless server. I got init.d setup ...
0
votes
0answers
49 views

SSH connection breaks after executing commands (broken pipe)

I am connecting to a remote machine on WAN and LAN networks using SSH. After logging in with username & password I type some commands in the shell. After the 2nd or 3rd command PuTTY throws the ...
1
vote
0answers
49 views

How to capture tail -f output from remote host indefinitely

I am trying to monitor a remote, embedded host that is writing output to a file: /var/log/myapp.log This host may lose power for hours. The app may be killed and restarted. On my local machine, I ...
0
votes
0answers
51 views

Difference between ssh manually and in a script

I am using AIX. I am trying to open pvcs Serena application which is present in a Linux server. If I manually ssh to Linux server, set DISPLAY variable and invoke pvcs it is working properly. However ...
3
votes
2answers
97 views

SSH Connection Timed Out

Hi I have looked all over the internet but could not find a solution. I am not saying that I didn't find anything, I am saying that I tried so many things and nothing worked. So hopefully someone can ...
0
votes
1answer
105 views

Why can't I use ssh?

The problem seems to occur straight from the time I have installed Ubuntu 14.04 LTS. I first realized this problem when I was trying to connect with my hosting at HostGator. I neglected and thought ...
0
votes
0answers
37 views

Browser is ok but can't direct internet through a shadowsocks server

Ok it seems an easy thing but I just couldn't make it work after lots and lots of searching. I have Ubuntu 14.04. This is config.json file including configurations of my friend's server running ...
0
votes
0answers
40 views

cannot ssh to Fedora 21VM from local-desktop

I verified that ssh is running on VM, however port 22 is not responding. [root@localhost log]# ps ax | grep sshd 5343 pts/0 S+ 0:00 grep --color=auto sshd [root@localhost log]# systemctl ...
3
votes
1answer
62 views

Where are SSH init scripts located?

I'm following the best security practices of SSH, via this link and the link states: We should remove the unused keys and only generate a large RSA key and an Ed25519 key. Your init scripts may ...
4
votes
1answer
96 views

After sending shutdown command, ssh session doesn't terminate

Whenever I send the command to turn off or restart my Debian servers, my shell is left hanging and unresponsive (can't type any commands). Performing the same action in Ubuntu results in the ...
0
votes
1answer
55 views

Cant use scp with wdmycloud

I can successfully log in to mycloud as root or another user I added. I need to use the scp command to send an image to my folder. It keeps asking for the password and saying its wrong when I know ...
4
votes
2answers
76 views

Is it possible to escape quotes within escape quotes within escape quotes within escape quotes?

I'm guessing someone will tell me I'm doing something wrong and dumb and noobish, but I'm trying to script something in the most straightforward method possible and use sudo commands to do something ...
8
votes
1answer
164 views

Blocking SSH Brute Force attacks on IPv6

I recently had to work with some servers that have an IPv6 connection and I was surprised to find out that fail2ban does not have IPv6 support, neither does denyhosts. Searching on google I found that ...
2
votes
1answer
65 views

SSH command not exiting properly [closed]

I wrote a script that SSH to remote servers in loop and run a command, it gets hung after running on last server.Here is my loop script - cat server | while read serName do ...
0
votes
2answers
33 views

“Replace” default shell (bash) with tmux

Background: An co-worker at my company uses tmux all the time, in our spare-time he teached me mastering tmux and vim and I really fall in love with the power of this combination. Currently, I am ...
5
votes
3answers
41 views

How to make SSH's `ControlPath` distinguish between IPv4 and IPv6?

I'm using ControlMaster auto ControlPath ~/.ssh/tmp/%l_%r@%h:%p in my ~/.ssh/config to open multiple sessions using the same connection when accessing a host via SSH. That works fine for ...
0
votes
3answers
80 views

Port is open but I can't ssh to it

My company PC is behind the firewall, I want to connect to my remote server. The port is open however I can not connect to it, does anyone know the root cause? From my company PC connect to my ...
2
votes
1answer
62 views

rsync over SSH sometimes very slow--other times maxes out bandwidth

I have a bash script set up on computer A (Mac OS X) set to run every five minutes via a cronjob. This script checks for new files on remote computer B (Gentoo Linux) then rsyncs any new files to ...
1
vote
0answers
20 views

How do I use the “screen” command if I don't know what the ps or tty the program came from?

I am making a python program that launches on bootup, and I would like it so that I can interact with that program via the "screen" command, so that if I need to talk to the progarm via a different ...
0
votes
1answer
66 views

ssh login with a tunnel through intermediate server in a single command?

Is there a way in a single SSH command to login via SSH to a remote server passing through an intermediate server? In essence, I need to create a tunnel to my "bridge server" and via the tunnel to ...
1
vote
1answer
25 views

Estimating time to send a single file with fixed network throughput?

Let's say I have several files with different sizes (10KB, 100KB, 1MB, 10MB, 100MB). Starting individual transfer of those files over 2MB per second network will return different final throughput ...
2
votes
1answer
62 views

SSH requires password for first login

So I've got a strange issue going on with SSH. I've setup my ssh server to allow passwordless logins via sshkeys. However, when I try to login, the first time I login in a long time (~day), it ...
2
votes
1answer
63 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
275 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
24 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
24 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
21 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
59 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
67 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
224 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
64 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
43 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
60 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
121 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
99 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
75 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 ...