All Questions
340
questions
6
votes
1
answer
982
views
scp failing on 24.04
I recently upgraded a box to 24.04 and several scripts using scp are failing.
They work perfectly on an older box but the new box can't copy the files and results in a "No such file or directory&...
-1
votes
1
answer
55
views
ssh only works after rebooting. Ubuntu 22.04
A local Mac can connect remote Ubuntu 22.04 by ssh for about 16 minutes, and disconnected. The local machine screen said Connection to xx.xx.xx.xx closed by remote host. Then I tried to connect the ...
0
votes
1
answer
68
views
Commands in the same line with sshpass not recognized
I was running a script normally. But suddenly, all the commands in the same line with sshpass started being not recognized. For instance:
sshpass -p "$password" rsync -a -e "ssh -o ...
0
votes
1
answer
179
views
Is it expected to not have `rsyslog` installed after a fresh install of ubuntu server?
Is it expected to not have rsyslog installed after a fresh install of ubuntu server?
If yes, where do logs that go to /var/log/auth.log actually go then?
Here is what happened: I was looking for /var/...
2
votes
1
answer
1k
views
SSH freezing moments after successfully connecting, then Broken Pipe
Sorry to ask about a topic that's been done to death, but I haven't found what I need yet.
I've set up a lambda machine with an SSH server. I can connect to it from my laptop with ssh -l <username&...
0
votes
0
answers
44
views
How to Login to SSH with Dynamic username
I some external Gateway through which the ssh requests come and need to log the sessionID in the linux when the connection happens. I can send the sessionID (some string) along with the username while ...
0
votes
0
answers
179
views
Allow access to openssh server without authentication
First this is not a duplicate of any thread ive gone thru all of them and either solutions were not working for OPs or they werent working for me.
I want to allow specific user to use my ssh server ...
0
votes
0
answers
280
views
port 22: Connection refused, but only 60% of the time
I am running this:
ssh_command = f'ssh -vvv -o StrictHostKeyChecking=no -i {private_key_file} ubuntu@{public_ip}'
# Use os.system to execute the SSH command in a subshell
os.system(ssh_command)
...
0
votes
1
answer
424
views
How to avoid Broken Pipe error from client side?
How do I prevent the Broken Pipe error from the client side of the ssh connection on ubuntu?
Let's say that slurm is running on the server and I just made a salloc request. If the connection is broken,...
0
votes
1
answer
550
views
send_pubkey_test: no mutual signature algorithm
Here is the client log output after a ssh -vvv user@machine (I think this problem is related with the deprecation of sha-1). I have already tried to create a new key/par for ed25519, but it doesn't ...
4
votes
1
answer
146
views
Secure remote copy with exceptions
In order to use some data that are stored and produced remotely I first download them via scp servername:/.../big_directory/* ~/. There are many files and the command includes everything. These files ...
0
votes
0
answers
121
views
"ssh-copy-id user@ip_address" throws error
In UBUNTU system, I'm trying to set up remote login system. It is failing in ssh-copy-id step. It throws the following error:
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to ...
0
votes
0
answers
2k
views
SSH Connection Timed Out Ubuntu 20.04
I've looked through a million threads on this topic but nothing has worked. I'm trying to ssh into my linux through port 22. Connection is refused.
UFW is inactive and firewall-cmd is not downloaded
...
0
votes
0
answers
29
views
failed to fetch libraries for openssh-server + Temporary failure resolving software sources [duplicate]
I tried many ways like tried to find here gone through http://in.archive.ubuntu.com folders.
1
vote
1
answer
162
views
When Connecting To Remote Box SSH Fingerprint Changed After Upgrade from 18.04 to 22.04
I have a PHP script on my local box that connects to a remote box. Nothing on the remote box changed. And when I connect via the command-line, using the ssh command in a terminal, there was no change ...
1
vote
1
answer
420
views
How do I make ssh ask for the password every time?
I am using Ubuntu 22.04. This is an unusual question since most users want to make the ssh agent remember the password once it is entered per user session. I would like it to ask for the password ...
0
votes
1
answer
252
views
can not setup passwordless ssh using key by MANUALLY COPY public key to server
context:
firstly, i got a new ubuntu 20.04 server with a password
I'm using OpenSSH client on Windows 10
I want to do passwordless login, then I
ssh to server using passwords,
manually create ~/.ssh ...
1
vote
1
answer
87
views
SSH - Driving me insane
I am using the latest ubuntu 22.04.03 on a headless system. SSH continues to add these lines to the top of the config file each and every reboot, therefore locking me out.
...
0
votes
0
answers
2k
views
Session closed for user root
I'm trying to use an old pc as server (ubuntu desktop LTS 22.04.02) and to connect from my new personal computer (ubuntu desktop LTS 22.04.02).
The command ssh -Y me@the other ip address worked once ...
0
votes
1
answer
333
views
SSH Connection working on Terminal to Ubuntu-server but not showing on website on same machine
Looking at other questions I have gone through and tried various methods but the problem I am having is when I log into the ubuntu-server via terminal it works correctly, I am able to do all the ...
1
vote
1
answer
17k
views
Upgrade OpenSSH from v8.9 to v9.3 on 22.04.2 LTS?
I'm working on shoring up some vulnerabilities in our environment, and one of them is that we're on OpenSSH 8.9. Our security team has advised us to upgrade to 9.3, but I'm not seeing anything ...
0
votes
1
answer
241
views
how to properly mask ssh server background service
I want to mask ssh so the ssh server is disabled till I need it myself. but still want to have ssh client capabilities.
I use openssh and the service is ssh.service and its alias sshd.service
I use ...
3
votes
3
answers
2k
views
How to access my computer's terminal in the university dorm from another computer?
I have used ssh to access remote computers/servers where they provided me a username, a password, and an IP address (like xxx:xxx:xx.xx). What I need to do is:
ssh [email protected]
and then it ...
0
votes
0
answers
131
views
ssh tunnel general process on a phone -used as vpn -user limitation failed
I'm using a couple of vm's as an ssh tunnel-vpn for both android and iOS, using ssh clients on both OS's. so now i want to limit the number of sessions per each user in order for each user is limited ...
0
votes
0
answers
1k
views
ssh and sshfs connection via NordVPN meshnet not working
I have set up an OpenSSH server on my home PC (Ubuntu 22.04 LTS) and am trying to connect to it using ssh and sshfs from my Laptop (Ubuntu 20.04 LTS).
The server seems to be running smoothly and I can ...
0
votes
0
answers
14
views
cannot install openssh-server [duplicate]
I'm having trouble installing OpenSSH server on Ubuntu-22.04.2 (not 22.04.1).
ERROR:
$ sudo apt install openssh-server
Reading package lists... Done
Building dependency tree... Done
Reading state ...
0
votes
2
answers
788
views
SSH into server running xinetd throws error "kex_exchange_identification: read: Connection reset by peer"
I have two servers running ubuntu 22.04.2 LTS with openssh-server 1:8.9p1-3ubuntu0.1 installed. And on both servers I have installed the same admin user.
I want to test the legacy superdaemon xinetd ...
0
votes
0
answers
106
views
Why I am not able to connect Ubuntu server with SSH key?
I have Ubuntu server 22.4 and I it had SSH server installed. Time to time SSH connection was doping even while I was working. I update the SSH by using command sudo apt-get update ssh. After the ...
0
votes
1
answer
183
views
Access to remote server via SSH via pem key requests 2 set of password (key and user)
On a remote server, I would like to access via ssh only with a pem key, which is password protected, but I'm being asked for the user account password as well
I created the account which I want to use ...
2
votes
1
answer
1k
views
Can't connect SSH on static IP address
I have a default Ubuntu Server 22.04 installation (haven't done anything on it yet).
SSH is working fine with default configuration on server's dynamic local IP.
I then set up a new netplan ...
1
vote
1
answer
4k
views
SSH service fails to start
I just created a virtual machine based on cloud images (of Lunar Lobster) on VMWare. Unfortunately it fails to start ssh. If I try to enable or restart the service I get:
And if I check journal it is ...
0
votes
1
answer
531
views
SSH with "Do not execute a remote command" hangs
I have Ubuntu 22.04 installed on a remote server. I can ssh to the server without any issues.
I often need to open a vnc tunnel with the following command:
ssh -L 5901:127.0.0.1:5901 -C -N -l username ...
0
votes
1
answer
215
views
Unstable SSH connection on old hardware and clean OS
I have a Ubuntu Server 18.04.6 LTS on an Intel Core Quad Q6600 and old Gigabyte 965P-S3 motherboard. Right now SSH is unstable. Client loses connection after 10 minutes of inactivity, but there is no ...
0
votes
0
answers
128
views
SSH Connectivity Issue
Why does the ssh client stop connecting to servers either right after reboot or few minutes after reboot?
The screenshot
I found this in both ubuntu 20 as well as ubuntu 22. My server is working fine ...
0
votes
0
answers
42
views
How to SSH in Ubuntu on a VM to Ubuntu on another VM
I'm new to Linux.
I have Ubuntu installed on Virtualbox on my Desktop, and I want to connect to it from Ubuntu installed on Virtualbox on my laptop.
How can I do that?
which user name and IP will I ...
0
votes
0
answers
130
views
Limit TTY via SSH to local Network
I'm setting up a JumpHost for my local network, and would like to not allow TTY from outside, but would also like to have it enabled for connections from inside the network. Is that possible, and if ...
0
votes
0
answers
1k
views
Trying to ssh into IPv6 address, getting "no route to host"
I have a home computer that uses Ubuntu 22.04, that I'd likely to remotely SSH into, from the internet. I'm trying to do this through its public IPv6 address. The address doesn't begin with fe80::, so ...
0
votes
0
answers
50
views
problem ssh to my ansible-controller
am having problem with connecting with my ubuntu using Mobaxterm. when putting my password it brings out this reply: [email protected]'s password:
Access denied
0
votes
1
answer
1k
views
Trying to install openssh-client openssh-server on WSL but going through snap error
sudo apt-get install openssh-client openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are ...
0
votes
0
answers
28
views
ssh using password and key [duplicate]
Ubuntu 22.04 with OpenSSH
I was ssh to require key and password. I want keys for the usual reason. I also want password in case my laptop is lost or stolen. I don't mind the extra step to type the ...
0
votes
1
answer
498
views
Ubuntu ssh-ing Ubuntu on home network [duplicate]
I have a laptop (Ubuntu, wifi) and PC (Ubuntu, Ethernet) connected to my home router.
I'd like to be able to ssh from laptop to PC to copy and run executables.
I don't need a gui, just running htop ...
0
votes
0
answers
1k
views
ssh: connect to host xx.xxx.xxx.xx port 22: Connection timed out
I am using ubuntu in my old pc and laptop.
Whenever I connect to my note book from pc by using ssh and sftp it works.
pc to notebook >> no problem
Now I am trying to make my pc like a remote ...
0
votes
0
answers
851
views
SSH connection not working
I created an EC2 instance (ubuntu 20.04), after successfully creating this instance I SSH into it and ran some commands which were basically to install some open source tools as sudo user, but once I ...
0
votes
0
answers
1k
views
"Wrong password" error on ssh server remotely
I am running an SSH server on my local machine and I am able to perfectly login and modify files if I use something like [email protected] and type my password.
However, when I try to login from ...
1
vote
0
answers
173
views
After upgrade to Ubuntu 22.04, getting ssh Permission denied (publickey) error [duplicate]
Immediately following my upgrade to Ubuntu 22.04 from 21.10, I can no longer connect to Google Cloud Platform via ssh and am receiving the following error (e.g. after running git clone):
[email protected]@...
0
votes
0
answers
1k
views
How to start manually-installed OpenSSH, and run at boot
I've manually built an older version of OpenSSH with make + make install, for educational purposes.
Is it possible to start it with sudo systemctl restart ssh, as when we install OpenSSH from apt-get?
...
2
votes
1
answer
4k
views
Install OpenSSH with older OpenSSL version
For educational purposes, on Ubuntu Server 18.04 I've downloaded OpenSSH_7.6p1 4-Ubuntu0.1 which should be exposed to SSH enumeration.
When I run ./configure, it says there's a problem with the ...
1
vote
1
answer
400
views
ssh -V shows OpenSSH_7.6, but openssh not installed
On Ubuntu Server 18.04, if I run:
ssh -v
it returns
OpenSSH_7.6p1, without OpenSSL
but
sudo apt-get remove openssh-server openssh-client
returns
package 'openssh-client' is not installed, so not ...
1
vote
0
answers
116
views
How to connect EC2 instance to Netbeans remote server?
I am trying to connect my AWS ec2 ubuntu instance to the Netbeans.
While I am trying to connect with Netbeans Remote server then, It is showing the following error message. I have searched all the ...
0
votes
1
answer
2k
views
CLI needs sudo to be able to SSH
I have a strange error. I just installed Ubuntu 22.04 and copied over my SSH keys from the old installation (Ubuntu 20.04). Now suddenly I need sudo to be able to SSH to any machine - as long as it's ...