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

learn more… | top users | synonyms

5
votes
3answers
13k views

bash: /home/user/.ssh/authorized_keys: No such file or directory

Create a ssh key: $ ssh-keygen -t rsa –P "" Moving the key to authorized key: $ cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys bash: /home/user/.ssh/authorized_keys: No such file ...
3
votes
0answers
51 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
39 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 ...
0
votes
1answer
2k views

How to execute Netscaler commands through a remote machine via SSH connection

I have been trying to execute some NetScaler commands like "bind" & "unbind" through a Linux Box via an SSH Connection. Now the Problem is, Manually we are able to enter & execute commands on ...
4
votes
1answer
34 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
3answers
872 views

Intermittent 'ssh_exchange_identification: Connection closed by remote host' error

While there are many questions on this site and others addressing this very issue, I haven't yet found one that seems to address what I'm experiencing. When trying to ssh a linux box from a MBpro ...
1
vote
0answers
8 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 ...
5
votes
2answers
71 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
1answer
45 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 ...
44
votes
5answers
48k views

How can I run ssh-add automatically, without password prompt?

I want to communicate between several computers on my network (static ethernet), through ssh. In order to do that I need to run ssh-add every time I login on specific machine, how can I do it so that ...
0
votes
0answers
13 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 ...
0
votes
2answers
726 views

tmux with iterm2 attach a remote session

I'm using the Tmux integrating with ITerm2, which can create a tab in ITerm 2 for each window created by Tmux. But somehow this doesn't make much sense for the usual SSH scenario, where we first SSH ...
97
votes
19answers
135k views

Why am I still getting a password prompt with ssh with public key authentication?

I'm working from the URL I found here: http://jaybyjayfresh.com/2009/02/04/logging-in-without-a-password-certificates-ssh/ My ssh client is Ubuntu 64 bit 11.10 desktop and my server is Centos 6.2 64 ...
1
vote
3answers
604 views

Force ssh to not to print warnings

Is there a way to avoid ssh printing warning messages like this? "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r", "@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\r", ...
5
votes
1answer
131 views

Fast drop-in replacement for “ssh -X”

I'm looking for something to provide faster X11 fowarding than ssh -X provides. I do not need a full GUI session or the ability to drop/resume user sessions. I use NX regularly, but as far as I can ...
2
votes
1answer
27 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?
1
vote
0answers
86 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 ...
2
votes
3answers
3k views

Can't SSH into Any Server

I work on remote servers frequently, but for some reason I cannot discern, today I am unable to ssh into anything. Everything comes back with Write failed: broken pipe. I know this is a common ...
0
votes
1answer
68 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 ...
2
votes
1answer
637 views

Directx application using wine over ssh -x

I'm trying to run a Windows app (Artemis video game - server mode) on my archlinux server. As it is an windows application I have to run it using Wine. As I'd like to be able to launch the server ...
8
votes
5answers
22k views

ssh Connection refused: how to troubleshoot?

I'm trying: $ ssh eric@myserver where myserver is a machine in the intranet. I can ping myserver or respond to HTTP on port 8080, etc, but when I try ssh, I get ssh: connect to host myserver port ...
1
vote
0answers
44 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 ...
1
vote
2answers
2k views

SSH failed public key authentication

I have a server, and I want to be able to SSH in with two different users. I have setup public key authentication for the first user, and it works just fine, however, I can't login with the second ...
1
vote
2answers
53 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 ...
4
votes
3answers
125 views

How to browse a website as if I am in USA? [closed]

I am in Taiwan right now and whenever I go to a website that I could browse in USA, it directly transfers me to the Asia site. There is no way to browse the USA version of the site, probably because ...
1
vote
1answer
31 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 ...
2
votes
2answers
61 views

chroot ssh users to home directory

How can one chroot ssh users to their home directories? This is what i have set in my sshd_config file: ChrootDirectory %h Subsystem sftp /usr/libexec/openssh/sftp-server ssh version is ...
5
votes
2answers
1k views

command line method or programtically add ssh key to github.com user account

Is there a way to identify with a username and password to github.com servers for the purpose of adding an ssh key to the github user account? So far everything I've read suggests that a users ssh key ...
0
votes
0answers
48 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
20 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
73 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
2answers
1k views

How to do a grep on remote machine and print out the line which contains those words?

I have few logs files in my machineB under this directory /opt/ptd/Logs/ as shown below - My logs files are pretty big. david@machineB:/opt/ptd/Logs$ ls -lt -rw-r--r-- 1 david david 49651720 Oct 11 ...
1
vote
1answer
3k views

Forwarding X11 not working - Error: Can't open display: localhost:11.0

LM 17 Xfce OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 Despite googling everywhere, I cannot seem to get this to work. I keep getting this error. $ xlogo Error: Can't open display: localhost:10.0 I have tried ...
0
votes
1answer
68 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 ...
2
votes
3answers
399 views

Why can't I login on the remote computer without a password after using SSH-KEYGEN command?

I have two computers. From the first I created the account admin1 with password admin1. Then I logged in as a root user and used the ssh-keygen -t rsa command. I did not give a password and hit Enter ...
0
votes
1answer
39 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 ...
1
vote
0answers
59 views

Easy way to compare BIOS information between two machines?

I have two machines - machineA and machineB running Ubuntu 12.04 Is there any easy way I can compare BIOS settings between those two machine and see the difference instead of doing it manually using ...
1
vote
0answers
29 views

Scale ssh forwarded graphical interface

I am running gnome on top of archlinux on a samsung ultrabook which display is hidpi. Gnome supports hidpi quite well actually, and apart some applications that ignore the system font settings or the ...
4
votes
1answer
584 views

Run SSH SOCKS5 proxy on system startup

I want to setup a linux server (Ubuntu Server 14.04 in this case) to be used as a SOCKS5 proxy by software on another client. Now this is pretty easy by running ssh -f -N -D 0.0.0.0:1080 localhost as ...
0
votes
2answers
48 views

Linux ssh log audit

I want to monitor ssh logins into a Linux box: who, from where (IP address) and when. How to open related logs? A simple document is appreciated.
-2
votes
0answers
40 views

Problems launching a GUI setup program over an SSH tunnel

I have EMC Documentum Content Server on a SUSE 11 box. To access the machine and then run Content Server's GUI configuration program, I used to do the following steps: ssh -X -Y Server_Name xtunnel ...
2
votes
1answer
69 views

chroot ssh users

I am using CentOS 7. I need to give shell access to ssh users but restrict them in a jail. I have used jailkit to set up the jail. I have copied all necessary libraries, binaries that are needed for ...
10
votes
4answers
12k views

Automated ssh-keygen without passphrase, how?

I would like to make an automated script that calls ssh-keygen and creates some pub/private keypairs that I will use later on. In principle everything works fine with.... ssh-keygen -b 2048 -t rsa -f ...
0
votes
1answer
33 views

Disable PAM login but keeping landscape-sysinfo y motd

Running Ubuntu Server, I have no need for PAM login, and thus disabled this service in the sshd_config file. However, oddly, there is some login info that is only displayed if you enable PAM logins ...
13
votes
3answers
12k views

How to dd a remote disk using SSH on local machine and save to a local disk

How can I create a backup of a remote disk using SSH on my local machine and save it to a local disk? I've tried the following: ssh hostname@my.ip.address "sudo dd if=/dev/sdX " | \ dd ...
2
votes
4answers
11k views

Launch a GNOME session from terminal

I'm sshing into my friends machine and I'm wondering how would i launch a GNOME session over SSH? I need to open a web browser on his machine to view something which can only be done from his ...
3
votes
4answers
16k views

X11 forwarding not working from putty and XMing to centos 6.4

I have centos 6.4 running on VirtualBox. I can connect to it via putty just fine. However X11 forwarding is not working. I Have Xming 6.9.0.31 running and putty 0.62 is setup for X11 forwarding: ...
18
votes
2answers
8k views

ssh-add is not persistent between reboots

I add a ssh key to the agent by $ ssh-add ~/.ssh/id_rsa_mac Identity added: /Users/alex/.ssh/id_rsa_mac (/Users/alex/.ssh/id_rsa_mac) After reboot I don't have this key added anymore: $ ssh-add -l ...
2
votes
3answers
202 views

Authentication refused: bad ownership or modes for file /var/git/.ssh/authorized_keys [duplicate]

EDIT The issue as exposed here is solved (about files modes of the .ssh folder. But an other issue persists so I create a new question : > Unable to login with SSH-RSA key I can no longer ...
0
votes
1answer
43 views

Unable to login with SSH-RSA key

This post is following this question : Authentication refused: bad ownership or modes for file /var/git/.ssh/authorized_keys . The issue as exposed there is solved (about files modes of the ...