All Questions
110
questions
1
vote
0
answers
114
views
SCP silently ignored on the remote machine
When I'm trying to copy a file using scp (in whatever direction), there's no error displayed (although the returned $? code is 1), all I can see is the message that normally the REMOTE machine prints ...
1
vote
1
answer
392
views
Why I get refused when connect my remote host with domain name using ssh?
I added two A DNS records on my domain name whose HOSTNAME is @ and www,
I'm wondering why I get refused when use davidzhu.xyz
$ ssh [email protected]
ssh: connect to host davidzhu.xyz port 22: ...
0
votes
1
answer
998
views
Enable ssh in emergency mode for centos 9
I'm trying make a backup system for my Centos Stream 9 headless server by installing a cloned system disk on a newer machine.
No surprise, the newer machine booted into emergency mode (hardware ...
1
vote
0
answers
673
views
Limit maximum ssh connections per user does not work when shell is /sbin/nologin
I'm having a Centos 7 server and when I limit the maximum connections per user using the config file /etc/security/limits.conf it works just fine. See below an example of my configuration in that file:...
0
votes
1
answer
93
views
ssh_config auto restored after some time
I need to connect to git using an ed25519 SSH key, but the /etc/ssh/ssh_config only has the entries below for IdentityFile, so I receive error Permission denied (publickey) when accessing the git repo:...
0
votes
0
answers
222
views
Issue with add Multiple user account and SSH key using Bash script
As per our requirement we provided our devloper group: devs:r-x to /var/log/httpd directory.
What is the best way to create a user account (in my case Dev User) in a Group using bash scrip, with the ...
0
votes
1
answer
442
views
Is it possible to grand SSH access (using username and password) to a Centos 7 machine configured with an user using private key to connect?
first of all I am not a system engineer (I am mainly a software developer).
I am working on a Centos 7 machine and I have the following doubt.
Using MobaxTerm client I can access to this machine via ...
0
votes
1
answer
42
views
SSH clients (putty, GCP web) often displays remnants of previous command [duplicate]
I saw it in different SSH clients but can at least guarantee Putty and GCP web-console (SSH in a web browser) have this.
When you scroll your history and then run a previous command - sometime (more ...
1
vote
1
answer
896
views
Launch GUI application on remote host (Linux CentOS 8) via SSH
I'm having some questions trying to run an GUI app remotely from SSH. My Linux skills are limited and I'm having some issues trying to achieve it through the following scenario:
I have a host with ...
0
votes
0
answers
280
views
Create an SSH user who has permission to access root directory but limited commands
I want to constrain the user to only have permissions for specific commands in Centos but he need to access root directory.
I want to prevent user from removing, restart, shut down
But he should be ...
0
votes
1
answer
658
views
ssh gives 'Permission Denied' on valid username/password credentials (ssh set to accept password log in)
I have a strange issue on a CentOS 7 machine.
If I login from the console, as two different usernames, I'm able to log in.
However, when I try that same username/password combinations, I get ...
0
votes
0
answers
94
views
ssh a CentOS machine installed in VMWare in different machine
I have installed a Centos7 in VMWare WorkStation in my wife's laptop and we can use putty to login in to the machine and access it from my wife's laptop.
I am trying to access the CentOs7 from putty ...
2
votes
1
answer
426
views
Create new SSH user and give him permission to an existing directory
Im trying to create new user called svecias and give him permission to connect via SFTP only to existing directory and deeper (/usr/share/nginx/itsupply).
Currently directory is owned by nginx in ...
0
votes
0
answers
716
views
How can I stop firewalld from interrupting an existing outgoing ssh exec session when it is started or restarted?
I have a java program running on a Centos7 server that continuously "tails" a file on another Centos7 server using the JSch library to run an ssh exec process to run a shell script on the ...
1
vote
2
answers
3k
views
How can I enable SSH login for this brand new user created on CentOS 7 machine?
I am not a sysadmin (I am s software developer) and I am finding the following difficulty working on a Linux CentOS 7 remote machine of a customer.
I am using MobaxTerm to connect to this machine. ...