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

learn more… | top users | synonyms

0
votes
1answer
44 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
24 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
44 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
97 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
68 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
46 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
56 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
44 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
88 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
20 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
36 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
48 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
81 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
42 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
71 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
43 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
207 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
63 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
63 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
36 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
91 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
49 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
37 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
96 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
57 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
359 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
41 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
42 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
74 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
42 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
106 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
173 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
32 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
67 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
41 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
74 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
12 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
53 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
99 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
30 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
54 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
109 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
59 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
57 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
102 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
119 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
76 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
29 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 ...