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

learn more… | top users | synonyms

0
votes
2answers
58 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
66 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
73 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
264 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
26 views

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

** edit 8/6/15 * So the crux of my problem turned out not to be some quirkiness with the config file. In the end it turned out I simply had multiple ssh directories in 2 different places, and was ...
2
votes
1answer
38 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
50 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
146 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
51 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
104 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; ...
2
votes
0answers
67 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
261 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
96 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
87 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
1answer
44 views

bash script failing to use ssh -i. Can't see directory

I am experiencing something strange. I am working on a script to remote install Splunk on servers via a script. In this script I ssh to my practice servers (5 amazon EC2 instances running Redhat). ...
2
votes
2answers
128 views

Reverse X11 Forwarding without SSH on server

I want to run an X11 program on the SERVER and display the window on the CLIENT. I have a shell on the server to start with. (This is not an SSH shell, but some cluster computing software) The ...
0
votes
0answers
66 views

X11 connection rejected because of wrong authentication for one display number

As stated in the title, I am having this error when I have ssh into a remote server with a certain display number assigned. There is not X11 forwarding problem since I can use GUI application as usual ...
0
votes
1answer
44 views

How to change password of an ssh identity file

Can I, and in that case how can I, change the password of an SSH identity file without having to generate a new key and setting up it all over again?
1
vote
1answer
101 views

Determine the target of an SSH connection at runtime

I want to determine the target address of an SSH connection with a function call that generate the address to connect to. All of the examples using ProxyCommand that I can find online use the -W flag ...
0
votes
1answer
73 views

Disable scp for all IP, but allow it for given ones

There is a server running sshd. We have root permission on it. Question: How can we disable SCP on it, BUT: allow a given IP to SCP (copy to it, etc.) Maybe rename the SCP binary and have a "Match ...
7
votes
2answers
501 views

SSH key authentication with multiple computers

I was reading about SSH key authentication and setting it up with my 3 computers at home. I have one main computer, call it "A", and two others, call them "B" and "C". Now based on the documentation ...
1
vote
2answers
77 views

How can I automatically stop putty disconnecting

Unless I set "Seconds between keepalives (0 to turn off)" to 2 putty keeps disconnecting after a few minutes of inactivity. How can I fix this once and for all? I can't find where putty settings are ...
-2
votes
1answer
50 views

ssh not working for all logins

I was doing a cleanup and by mistake i deleted some dir from /var which resulted in a situation that no other session /ssh is possible . When I am trying from ILOM via vsp -- says Error Service Module ...
2
votes
3answers
124 views

Pasting some text with tabs into a here-document in a PuTTY window

I have a string with tab delimited data that looks like: h1 h2 a1 b1 a2 b2 I produced it with Notepad on Windows. I created tab delimited data, ensuring that tabs and not spaces are used. I ...
1
vote
1answer
52 views

Transfer data over SSH directly in Truecrypt volume

my problem is this: I have to transfer data from my computer to a remote system that doesn't have an encrypted partition. Because I don't want that the transferred data can be retrieved by forensic ...
2
votes
1answer
195 views

Connect to server to remotely access a Linux computer via GUI

I'm working from home on my laptop which runs on Ubuntu and I would like to access my work computer which runs on Mageia. Usually I just gain access through terminal like this: ssh -p <port> -X ...
1
vote
1answer
383 views

CentOS 7 - ssh login is refused when i use ssh public key, but only works with username password

I am not able to login via SSH key. I place my id_rsa.pub key in the /root/.ssh/authorized_keys [root@s .ssh]# ll total 4 -rw------- 1 root root 403 Jun 8 00:44 authorized_keys [root@s ~]# cat ...
1
vote
1answer
45 views

Set xterm title doesn't work over ssh

I followed unix s.e post and added the line, trap 'echo -ne "\033]0;$BASH_COMMAND\007"' DEBUG to my .bashrc file to set my last command as the terminal title. It works good on my ubuntu desktop ...
4
votes
0answers
99 views

Restart a specific reverse ssh tunnel?

I have multiple machines in the wild that open reverse ssh connections to my server. Each machine out there is using a different reverse ssh port, which I use to differentiate between the machines. I ...
2
votes
1answer
42 views

Is sshd_config TPCKeepAlive still using unencrypted channel and therefore vulnerable

This post from 2008 in ubuntuforums recommends disabling TCPKeepAlive Disable TCP KeepAlive messages. These messages are spoofable and are sent outside of the encrypted channel, and ...
4
votes
1answer
243 views

Uselogin in sshd_config

I was looking through my sshd_config file and I found this: #Uselogin no I know it's commented but there is no explanation above it and when I google it, I get this: Don't use the traditional ...
1
vote
0answers
13 views

GUI SELinux security alert window don't shows up?

I created an error I broke ssh service on my system to see why security context must be properly configured. I used next commands: # service sshd stop # chcon --reference /root/anaconda-ks.cfg ...
0
votes
1answer
61 views

SSH from different countries with openvpn configured on pfsense and dd-wrt?

I have vpn set up in two different countries A (primary, where I live) and B (secondary, which I visit once or twice a year) and would like to SSH to my devices across the vpn. My Setup: Country ...
5
votes
2answers
170 views

How are terminal length and width forwarded over SSH and telnet?

When I view the length and width of my terminal emulator with stty size then it is 271 characters long and 71 lines tall. When I log into another server over SSH and execute stty size, then it is also ...
0
votes
0answers
14 views

iptables presale me to ssh access or calling methods remotely

I have a linux openwrt unit. At its start, I can not make a ssh access if I do iptables -F. If I use iptables -L -n -v, I find several rules that are automatically inserted and it prevents me from ...
2
votes
1answer
32 views

How can I have ssh-agent warn if using a particular key?

I have an older SSH key that I'm replacing, and I would like ssh-agent to warn me if it used the older key, so I know to update it on that server. Is there a way to do this?
2
votes
1answer
61 views

Detect remote sshfs mounts on local machine

I would like to get back the question of this post. When a user in a remote client mounts a directory from a local server on his filesystem through sshfs, he is not visible in the server through who ...
1
vote
0answers
126 views

SSD installed, but shows as HDD in command output

Strange issue here. I have a 480GB SSD drive installed in this server. I installed it myself. I see it, it's there. But, I'm getting an incorrect output on a typically used command to determine if ...
1
vote
0answers
64 views

nmap doesn't detect opened port [closed]

I'm testing some vulnerabilities on a machine which has the port 22333 opened (it's used as the ssh port, and I can connect to it without any problem and I can get connected as well with the telnet ...
3
votes
0answers
61 views

X11 forwarding but open links locally

I have X forwarding between two machines. I doubt it matters, but the local machine is Windows running PuTTY and Xming. Is there any way that I can click a web link on a remote application and have ...
3
votes
2answers
128 views

-X flag (X11 Forwarding) does not appear to work in Windows

I am using Open SSH (OpenSSH_6.6.1p1, OpenSSL 1.0.1i 6 Aug 2014) in Windows 8.1. X11 Forwarding does not appear to be working. The DISPLAY environment variable does not appear to be set. For ...
0
votes
1answer
252 views

SSH Server Not Responding to Connection Request

I'm attempting to set up an SSH server on my local machine using OpenSSH. When I try to SSH from a remote host into my local SSH server, the SSH server doesn't respond and the request times out. I'm ...
1
vote
2answers
90 views

iptables configuration - ssh connection only from a remote network

I'm trying to configure Iptables of a server in order to permit SSH incoming connections only from a certain network. by the way this is the rule chain : # Drop anything we aren't explicitly ...
0
votes
0answers
51 views

scp from a remote machine

I am having trouble moving files off a remote machine that we need to take down. I can SSH into the remote machine just fine but, when I try to scp the files out I get an connection timed out on port ...
1
vote
0answers
37 views

OpenSSH Server as Tor Hidden Service

What exactly is considered best practice when setting up an open SSH server as a Tor hidden service? I do it this way, but I feel like there's a better way of doing this: I just set SSH up as a ...
1
vote
1answer
95 views

Cannot connect to ssh

Hello I type the following command: $ ssh -vv root@192.168.11.9 I enter the password correct, but I am getting the following error: debug2: we sent a password packet, wait for reply debug1: ...
1
vote
1answer
43 views

What ports will an ssh daemon use outbound?

I am making a bastion ssh server. When I use the following rules in its ip tables, I am able to connect to the server just fine: Inbound Rules Allow traffic on port 22 from my client's IP Block all ...
0
votes
3answers
299 views

Running remote script via ssh command

I have a script on remote Debian server machine and I want to run a command by invoking: ssh server "find.sh" My find.sh script is in in: /home/user/bin First of all, I ran ssh server "echo ...
0
votes
1answer
64 views

How to parse through a .dat file and get patterns such as timestamps and file size of a .jar file declared inside

I want to compare the size and timestamp of the following jar files in separate directories. First data is fetched by: grep -Eo ...
0
votes
1answer
220 views

“no matching cipher found” error in `rsync`

I am trying to copy a directory from one system to another with rsync; but it erred. Can you please advise me on what to check? Command: [M root@aMachine ~]# rsync -e "ssh -c blowfish" -v -a ...