Comprehensive data protection for all workloads
Post Reply
AlaskanBrewing
Influencer
Posts: 11
Liked: 1 time
Joined: Jul 08, 2009 1:00 am
Contact:

Issue with Veeam to Linux server SSH login via TTY

Post by AlaskanBrewing »

For disaster recovery at a remote site we have a virtualized CentOS 5.3 server instance running on a Citrix Xen server as a target for our Veeam Backup server.

However it seems either there's a issue with virtual hardware or possibly CentOS as we're getting the following error when Veeam tries to connect/login after adding the server.
Error: stdin: is not a tty, answer:
I've connected with SSH using putty and worked at the command line on this server without any issues.
Alexey D.

Re: Issue with Veeam to Linux server SSH login via TTY

Post by Alexey D. »

Hello,

I heard of such a behavoir in CentOS, take a look here, might help: http://www.thoughtsincomputation.com/po ... -on-centos
AlaskanBrewing
Influencer
Posts: 11
Liked: 1 time
Joined: Jul 08, 2009 1:00 am
Contact:

Re: Issue with Veeam to Linux server SSH login via TTY

Post by AlaskanBrewing »

I've spent most the morning trying to get this working, still no luck.

Tried:

Code: Select all

/sbin/MAKEDEV pty
/sbin/MAKEDEV tty

and

And make sure the udev rpm is gone: 
# rpm -e --nodeps udev

and

If the problem persists after reboot, repeat the steps above and create the following file within the VE/CT:

/etc/udev/makedev.d/51-udev.nodes

...with these contents:

# These device have to be created manually
tty0
tty1
tty2
tty3
ttyp0
ttyp1
ttyp2
ttyp3
ptyp0
ptyp1
ptyp2
ptyp3
Would be nice is veeam had some other options/methods to try for a login?
Vitaliy S.
VP, Product Management
Posts: 27114
Liked: 2719 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Issue with Veeam to Linux server SSH login via TTY

Post by Vitaliy S. »

Hmm...you may also try editing/etc/bashrc file by specifying these lines in the beginning:

Code: Select all

if ( ! $?USER || "$prompt" == "" || ! $?term ) then
exit
endif
If it doesn't help, then contact our support team for assistance. Thanks!
AlaskanBrewing
Influencer
Posts: 11
Liked: 1 time
Joined: Jul 08, 2009 1:00 am
Contact:

Re: Issue with Veeam to Linux server SSH login via TTY

Post by AlaskanBrewing » 1 person likes this post

I was still getting an error with that code, however I did some more research and found a simliar fix:

Insert the following code at the top of the ~.bashrc file (bashrc located in the actual user account you wish to use. It will also work if you place it in the /etc/.bashrc file as well.

Code: Select all

if [ $(expr index "$-" i) -eq 0 ]; then
return
fi
That worked for me, Veeam is now able to login. Hopefully if anyone else encounters this it'll save them a massive headache.
Vitaliy S.
VP, Product Management
Posts: 27114
Liked: 2719 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Issue with Veeam to Linux server SSH login via TTY

Post by Vitaliy S. »

Thanks for finding time to update this topic with the resolution.
Post Reply

Who is online

Users browsing this forum: david.domask, robertbelus, Semrush [Bot] and 141 guests