Questions about the OpenSSH implementation of the ssh protocol.

learn more… | top users | synonyms

1
vote
2answers
169 views

SSH login not accepted, and no delay between ssh login attempts

When ssh'ing to my server (RaspPi running Arch), it doesn't accept my password (which I'm 98% sure is correct), and the usual delay before Permission denied, please try again. is not there. Elsewise, ...
0
votes
0answers
38 views

Upgrading from SSH1 to SSH2 on Linux RAID Array command line

Any ideas of how I could upgrade from SSH-1 to SSH-2 on RAID array on the command line. Raid Model: HP StorageWorks MSA2312i. Below shows that the raid node 10.5.5.75 has SSH-1.99. I need to ...
0
votes
0answers
2k views

SSH Connection Refused In CentOS?

For a week, SSH was working perfectly. Today I restarted my server and I got this error in my Mac terminal: ssh: connect to host 162.243.7.7 port 22: Connection refused This is very odd... I am ...
1
vote
2answers
418 views

Reverse SSH “Connection closed by ::1”

I try to establish a remote ssh connection. I tried to connect "Remote" with ssh -fN -R 10110:localhost:22 GatewayUser@GatewayHost and "Gateway" with ssh -p10110 RemoteUser@localhost I got the ...
0
votes
1answer
238 views

Show only last login in the SSH welcome message

When i log in to my raspberry pi it shows me this message, i like the fact that it shows the last login but the info is too long (also because i log in from mobile devices). Linux RaspberryPi 4.1.11+ ...
0
votes
1answer
70 views

Auto-inputing ssh password in shell scripts on Linux [duplicate]

I can use ssh command and provide password and connect to another server. But I need to pass password in the shell script. how?
1
vote
1answer
185 views

storing ssh remote executed command output to variable is blocking. connection not ending?

I'm not quite sure what the issue is. I'm on Kali Linux 2.0 right now, fresh install. The following worked on Ubuntu 14.04 but it's not working anymore (maybe I accidentally changed it?). It looks ...
4
votes
1answer
184 views

Is there a downside to enabling X11 forwarding in ssh?

For some remote work, I sometimes use X11 forwarding on ssh connections, but usually don't. But, instead remebering to use the -X flag on my ssh connection, I can also set ForwardX11 yes to enable it ...
7
votes
2answers
5k views

Can't login to a remote machine with key

I used to login to a remote machine( I have to root of this machine) using key. Both my local machine and remote machine is in f23. From last few days, I can't login to this machine using key. It is ...
-1
votes
1answer
2k views

ssh error bash: 22: command not found

I am pretty new to unix, so please bare with me... when i try to connect to my server running ubuntu server through terminal on my ubuntu workstation I get this error: bash: 22: command not found ...
0
votes
1answer
51 views

SSH run command in users rbenv enviroment

Anyone know how to make ssh source the users enviroment? ssh -Y -t old-dash '"bundle exec rails server" bash: bundle exec rails server: command not found Connection to old-dash closed. ...
1
vote
1answer
97 views

can I use ssh to send build command for android building?

I'm new in Linux, but learning bits by bits.. So please give explanation too, instead of only the answer, to help me understand about why and how. Currently I want to build an android rom with ...
0
votes
0answers
43 views

Connect to work pc via ssh

I have a PC on my work which I want to connect to from home (on both machines Ubuntu 14.04 is installed). I already opened a port in my work firewall. Now I found an instruction to create a pseudo ssh ...
3
votes
2answers
148 views

How do I configure sshd to 1) require public key _and_ 2) require a password for login?

How do I configure sshd to 1) require public key and 2) require a password for login? Note that I am not referring to the symmetric encryption of the client's key here. I am referring to a server-side ...
2
votes
2answers
77 views

Openssh server: fatal: Too many listen sockets. Enlarge MAX_LISTEN_SOCKS [closed]

I am using Ubuntu 14.04 LTS. I want to create an openssh server, which listens on many ports (at least 100 different ports). Multiple clients would connect to this server, but each client would need ...
-1
votes
1answer
45 views

Manually install SSH service

I have a CCTV camera DVR at work that only allows local login for DVR software management via a command line console (looks like a GUI you'd get on a serial console) or web login for viewing the ...
1
vote
1answer
288 views

How to force Debian to use a newer version of OpenSSL?

Today I installed ,,empty'' (just minimal set of packages) Debian 8.1 on my VirtualBox. I wanted to play with compiling apps from sources. I started with OpenSSL: compiled from sources OpenSSL ...
0
votes
3answers
152 views

Have a server on DigitalOcean only accessibly by SSH, what happens if my computer breaks?

I bought a server/droplet on Digital Ocean and per its recommendations disabled password login so it could only be accessed by SSH key. I understand the SSH security mechanism basically makes it so ...
0
votes
1answer
172 views

Installed OpenSSH on Mint 17 but it doesn't seem to be running

So I've installed OpenSSH on Mint rafaela 17.2, but it doesn't seem to be running when using the modified config file. Not sure why service says its up, but I don't have a PID, don't have a listener, ...
0
votes
1answer
86 views

Disabling openssh host key checking on LAN

If I want to specify for LAN addresses that I don't want to deal with host keys, how do I do that? /etc/ssh/ssh_config Host 192.168.*.* StrictHostKeyChecking no UserKnownHostsFile /dev/null ...
1
vote
2answers
106 views

Unexpected Match behavior in sshd_config

I'm trying to configure the following restrictions in my sshd_config: Users with local IP addresses face no restrictions Users with non-local IP addresses, who are in the sftp group, are allowed to ...
1
vote
1answer
45 views

Is it possible to chroot sftp service as unprivileged user?

I currently have an sftp-only sshd service running as an unprivileged user that works fine. When adding ChrootDirectory %h to the separate user_sshd_config, the user is immediately disconnected after ...
5
votes
2answers
2k views

How do I list available host key algorithms for an SSH client?

So ssh has the option HostKeyAlgorithms. Sample usage: ssh -o "HostKeyAlgorithms ssh-rsa" user@hostname I'm trying to get the client to connect using the servers ecdsa key, but I can't find what ...
1
vote
1answer
179 views

Prevent ssh-keyscan from generating output

Problem: When running ssh-keyscan in cron it emails me the output of ssh-keyscan every day. The email simply contains the following. # <hostname> SSH-2.0-OpenSSH_5.3 My (simplified) cron ...
1
vote
2answers
80 views

Open the SSH Door to a Knocking Friend

I am logged into my Debian machine. I want my friend to get in via SSH. He comes to authenticate as the user friend. My machine asks him for a password. He does not know the password. I want to ...
0
votes
2answers
25 views

Why are my OpenSSH keys stored in OpenLDAP returned base64 encoded

I'm doing an experiment on my Ubuntu server and have stored OpenSSH keys in the OpenLDAP server. There are enough examples around how to achieve this. A good source is this one. Somehow my keys are ...
2
votes
1answer
483 views

scp does not honor .ssh/config

Used for a few years arcfour as default cipher for SSH2 connection in my ~/.ssh/config file host namaka hostname localhost port 2022 ciphers arcfour IdentityFile ~/.ssh/virtualbox ...
2
votes
1answer
36 views

Display full settings of sshd

The OpenSSH daemon has many "default" values for its settings. So looking at the sshd_config might not give someone the complete set of active settings. How to display the full sshd configuration ...
5
votes
3answers
97 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
1answer
64 views

ssh-copy-id doesn't copy to non-default location

Does ssh-copy-id recognize if the authorized_keys file is not in ~/.ssh? I am storing my authorized keys file in a different folder, which I have configured as: AuthorizedKeysFile ...
3
votes
1answer
697 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?
0
votes
0answers
82 views

SMTP traffic being forwarded through SSH even do AllowTcpForwarding is disabled

I have a situation on one server, where it seems to be spaming over traffic being sent over SSH tunnel. Output below shows connections being made to remote SMTP server that seem to be initiated over ...
1
vote
1answer
430 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
113 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 ...
1
vote
1answer
137 views

Appending a line to a file via a ssh chain

From my machine A, I got access to a machine B that can access a machine C. From A, I want to append a line to the file ~/.profile of C. So far I tried: ssh user@B ssh user@C "echo \"line of ...
1
vote
1answer
5k 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
0answers
97 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 ...
0
votes
2answers
72 views

Setting Up SSH. Just need some understanding

My goal is to build a LAMP server on my arch linux laptop. The main reason is for a web server. The other reason is to learn about how all this administration stuff works. My setup is a laptop with ...
2
votes
1answer
57 views

Configure OpenSSH server not to require password *or* key for a particular user

For the purpose of a training session, I'd like to make it possible for a particular user to connect without requiring a password or key-based authentication. I do not know the IPs or other data of ...
2
votes
1answer
78 views

OpenSSH-Server: How can I remotely set the client's side window title?

I have an OpenSSH server running under Ubuntu 14.04LTS. I'm connecting to it from a Windows 7 machine via PuTTY's SSH client. I have found this option on Putty client named Disable remote-controlled ...
2
votes
1answer
196 views

ssh-copy-id: why is the end of my public key different on my local vs remote?

Usually in the past I've always manually copied over my SSH public key to the remotes where necessary. I'm on a Mac and I finally decided to start using ssh-copy-id to make my life simpler, so I just ...
2
votes
1answer
375 views

Does `ssh -D` proxy DNS request?

Is DNS resolution tunneled to the other end when I use a SOCKS proxy created with ssh -D? I have read the manual, searched the Internet, and found no documentation relevant.
3
votes
1answer
2k views

How to set up chrooted and non-chrooted sftp?

I am trying to set up my Openssh server to allow for chrooted sftp-only users as well as for non-chrooted sftp and ssh users. My condensed (comments and blank lines removed) /etc/ssh/sshd_config looks ...
2
votes
0answers
119 views

ssh terminating immediately with message Terminated

I have tried following command on my local system (Ubuntu 14.04 LTS): $ ssh localhost The authenticity of host 'localhost (127.0.0.1)' can't be established. ECDSA key fingerprint is ...
2
votes
2answers
272 views

Use a dynamically obtained hostname with an ssh config entry

Our accounts in our lab are all mounted over NFS and are accessible over all the systems in a subnet. So, effectively we can ssh into any of the machines in the subnet and continue our work. The ...
2
votes
0answers
517 views

Force OpenSSH / pam / pam_ldapd to do pam_ldapd(sshd:auth) with public-key authentication

I have working pam_ldap authentication using libpam_ldapd. I'm using slapo-nssov and want to use loginStatus attribute which is added to users ldap entry after opening pam session and deleted when its ...
2
votes
1answer
128 views

Arch Linux openSSH frequently drops connection

I'm running a VM using Oracle's VirtualBox. The OS is the latest version of Arch, 64-bit. For some odd reason, every so often (frequently enough to be very annoying and making it almost impossible ...
0
votes
1answer
82 views

SFTP Chroot and SSH

I have a chrooted SFTP user group to access my home server. The chroot location is /mnt/, mostly because it is already owned by root and is where I have mounted the external HDD I want to the chrooted ...
0
votes
1answer
5k views

How to install openssh-server on openSUSE?

I recently installed openSUSE, and I want to set up an ssh server so that I can ssh into this machine. However, I am having trouble installing openssh-server. I have tried $ sudo zypper install ...
2
votes
2answers
262 views

Chroot user exit jail [duplicate]

I am using OpenSSH chrootdirectory feature to give access to a user via ssh. Can this user exit the jail and return to the normal OS environment? Maybe with su?